This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "game.h"
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define sc second
#define pii pair<int,int>
using namespace std;
const int MAXN = 1500+5;
const int mod7 = 1e9+7;
const long long inf = 1e18;
int N;
int cnt[MAXN];
map<pii, bool>mapa;
void initialize(int n) {
N = n;
}
int hasEdge(int u, int v) {
if(u>v)swap(u,v);
cnt[v]++;
return v == cnt[v];
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |