Submission #782062

#TimeUsernameProblemLanguageResultExecution timeMemory
782062Dan4LifeCoins (IOI17_coins)C++17
100 / 100
8 ms1400 KiB
#include <vector> using v=std::vector<int>; v coin_flips(v b, int c){int x=0;for(int i=0;i<64;i++)c^=b[i]*i;return{c};} int find_coin(v a) {int x=0;for(int i=0;i<64;i++)x^=a[i]*i;return x;}

Compilation message (stderr)

coins.cpp: In function 'v coin_flips(v, int)':
coins.cpp:3:30: warning: unused variable 'x' [-Wunused-variable]
    3 | v coin_flips(v b, int c){int x=0;for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      |                              ^
#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...