Submission #1006126

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