Submission #1059300

#TimeUsernameProblemLanguageResultExecution timeMemory
1059300vjudge1Game (IOI14_game)C++17
0 / 100
1 ms348 KiB
#include "game.h" #include<bits/stdc++.h> #define ll long long #define pb push_back using namespace std; int N, R; vector<int> cnt(1505,0); void initialize(int n) { N = n; R = 0; } int hasEdge(int u, int v) { cnt[u]++; cnt[v]++; R++; int ans=0; if(cnt[u] == N-1 || cnt[v] == N-1){ ans = 1; N--; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...