Submission #306352

#TimeUsernameProblemLanguageResultExecution timeMemory
306352juggernautGame (IOI14_game)C++14
100 / 100
419 ms7288 KiB
void initialize(int n){}int a[9999];int hasEdge(int x,int y){return++a[x=x>y?x:y]==x;}

Compilation message (stderr)

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