Submission #123044

#TimeUsernameProblemLanguageResultExecution timeMemory
123044win11905Game (IOI14_game)C++11
100 / 100
367 ms7416 KiB
int c[1500];void initialize(int){}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:71: warning: operation on 'u' may be undefined [-Wsequence-point]
 int c[1500];void initialize(int){}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...