Skip to content

Instantly share code, notes, and snippets.

View ortsc's full-sized avatar
👌
Staying Cool

João Pedro Castro ortsc

👌
Staying Cool
  • Brazil
  • 04:00 (UTC -03:00)
View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int, int>
#define fr first
#define se second
int n, M = 1e9 + 7, ways = 1;
vector<pii> adj;