Submission #974676

#TimeUsernameProblemLanguageResultExecution timeMemory
974676lucriGame (IOI14_game)C++17
100 / 100
244 ms18508 KiB
#ifndef _GAME_H #define _GAME_H #include<bits/stdc++.h> int N,nr[1510]; void initialize(int n) { for(int i=0;i<n;++i) nr[i]=0; } int hasEdge(int u, int v) { if(v>u) v^=u^=v^=u; ++nr[u]; if(nr[u]==u) return 1; return 0; } #endif
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...