Submission #578527

#TimeUsernameProblemLanguageResultExecution timeMemory
578527zaneyuCoins (IOI17_coins)C++14
0 / 100
3 ms980 KiB
#include "coins.h" #define REP(i,n) for(int i=0;i<n;i++) std::vector<int> coin_flips(std::vector<int> b, int c) { REP(i,64){ if(b[i]) c^=i; } b[c]^=1; } int find_coin(std::vector<int> b) { int a=0; REP(i,64) if(b[i]) a^=i; return a; }

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...