Submission #953585

#TimeUsernameProblemLanguageResultExecution timeMemory
953585SmuggingSpunCoins (IOI17_coins)C++14
0 / 100
8 ms1360 KiB
#include<bits/stdc++.h> #include "coins.h" using namespace std; vector<int>coin_flips(vector<int>b, int c){ int sum_xor = 0; for(int i = 0; i < 64; i++){ if(b[i] == 1){ sum_xor ^= i; } } b[sum_xor ^ c] ^= 1; return b; } int find_coin(vector<int>b){ int ans = 0; for(int i = 1; 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...