Submission #918680

#TimeUsernameProblemLanguageResultExecution timeMemory
918680hasanovrCoins (IOI17_coins)C++14
100 / 100
9 ms1860 KiB
#include "coins.h" #include <bits/stdc++.h> using namespace std; vector<int> coin_flips(vector<int> a, int c) { int x = 0; for(int i=0; i<64; i++) x ^= a[i] * i; vector<int> flips(1); flips[0] = c^x; return flips; } int find_coin(vector<int> a) { int ans = 0; for(int i=0; i<64; i++) ans ^= a[i] * 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...