Skip to content

Instantly share code, notes, and snippets.

View theortsac's full-sized avatar
👌
Staying Cool

João Pedro Castro theortsac

👌
Staying Cool
  • Brazil
  • 05:16 (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;