# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1006440 | andecaandeci | Game (IOI14_game) | C++17 | 0 ms | 0 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<bits/stdc++.h>
using namespace std;
const int maxn = 1505;
int freq[maxn];
int N;
void initialize(int n) {
N = n;
for (int i=0; i<n; i++) freq[i] = n-1;
}
bool hasEdge(int a, int b) {
if (freq[a] <= 1 || freq[b] <= 1) {
freq[a]--;
freq[b]--;
return 1;
}
freq[a]--;
freq[b]--;
return 0;
}
signed main() {
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
return 0;
}