Submission #109217

#TimeUsernameProblemLanguageResultExecution timeMemory
109217mefbayarGame (IOI14_game)C++14
100 / 100
385 ms7088 KiB
int c[1510];void initialize(int n){};int hasEdge(int u,int v){return ++c[u=u>v?u:v]==u;}

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:1:75: warning: operation on 'u' may be undefined [-Wsequence-point]
 int c[1510];void initialize(int n){};int hasEdge(int u,int v){return ++c[u=u>v?u:v]==u;}
                                                                          ~^~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...