Submission #782059

#TimeUsernameProblemLanguageResultExecution timeMemory
782059Dan4LifeCoins (IOI17_coins)C++17
100 / 100
8 ms1404 KiB
#include <vector> using namespace std; using v=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:4:29: warning: unused variable 'x' [-Wunused-variable]
    4 | 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...