Submission #1006124

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