Submission #650134

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