# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1087730 | MrPavlito | Game (IOI14_game) | C++17 | 1 ms | 348 KiB |
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);
//if(mapa.count({u,v}))return mapa[{u,v}];
cnt[u] ++;
cnt[v]++;
int tru = cnt[u];
int trv = cnt[v];
if(cnt[u] == N-1)return 1;
if(cnt[v] == N-1)return 1;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |