Submission #918720

#TimeUsernameProblemLanguageResultExecution timeMemory
918720HasanV11010238Coins (IOI17_coins)C++17
100 / 100
8 ms1700 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { int as = 0; for (int i = 0; i <= 63; i++){ if (b[i]){ as ^= i; } } return {c^as}; } int find_coin(std::vector<int> b) { int ans = 0; for (int i = 0; i <= 63; i++){ if (b[i]){ 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...