# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1006456 | makanhulia | 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>
#include "game.h"
using namespace std;
// #define int long long
// #define ld long double
// #define fi first
// #define se second
// #define pb push_back
// #define pii pair<int, int>
// #define piii pair<pair<int, int>, pair<int, int>>
// #define pip pair<int, pair<int, int>>
int n;
int freq[1505];
void initialize(int x)
{
n = x;
}
bool hasEdge(int u, int v)
{
freq[u]++;
freq[v]++;
if (freq[u] == n - 1 || freq[v] == n - 1)
{
return true;
}
else
return false;
}
// signed main()
// {
// ios_base::sync_with_stdio(false);
// // cin.tie(NULL);
// cout.tie(NULL);
// }