Submission #964343

#TimeUsernameProblemLanguageResultExecution timeMemory
964343bachhoangxuanCoins (IOI17_coins)C++17
100 / 100
9 ms1808 KiB
#include "coins.h" #include<bits/stdc++.h> using namespace std; std::vector<int> coin_flips(std::vector<int> b, int c) { vector<int> flips(1); for(int i=0;i<64;i++) if(b[i]) c^=i; flips[0]=c; return flips; } int find_coin(std::vector<int> b) { int x=0; for(int i=0;i<64;i++) if(b[i]) x^=i; return x; }
#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...