Submission #918536

#TimeUsernameProblemLanguageResultExecution timeMemory
918536vjudge1Coins (IOI17_coins)C++17
100 / 100
8 ms1952 KiB
#include <bits/stdc++.h> #include "coins.h" using namespace std; vector<int> coin_flips(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(vector<int> b) { int res=0; for(int i=0;i<64;i++){ if(b[i]){ res^=i; } } return res; }
#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...