# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
678579 | penguin133 | 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;
//#define int long long
#define pi pair<int, int>
#define pii pair<int, pi>
#define fi first
#define se second
#ifdef _WIN32
#define getchar_unlocked _getchar_nolock
#endif
int N;
void initialise(int n){
N = n;
}
int cnt = 0;
int hasEdge(int u, int v){
if(max(u, v) == 1)return 1;
else if(min(u, v) == 2)return 1;
cnt++;
if(cnt < N * (N - 1) / 2 - 2)return 0;
else return 1;
}