Submission #1006121

#TimeUsernameProblemLanguageResultExecution timeMemory
1006121HishamAlshehriCoins (IOI17_coins)C++17
0 / 100
5 ms1828 KiB
#include <bits/stdc++.h> using namespace std; vector<int> coin_flips(vector<int> b, int c) { vector<int> flips; int xorror = 0; for (int i = 0; i < 64; i++) { flips.push_back(b[i]); if (b[i]) xorror ^= i; } xorror ^= c; flips[xorror] ^= 1; return flips; } int find_coin(vector<int> b) { int xorror = 0; for (int i = 0; i < 64; i++) { if (b[i]) xorror ^= i; } return xorror; }
#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...