제출 #964679

#제출 시각아이디문제언어결과실행 시간메모리
964679KK_1729Coins (IOI17_coins)C++17
100 / 100
9 ms1940 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { int o = 0; for (int i = 0; i <= 63; i++){ if (b[i] == 1) o ^= i; } int e = c^o; return {e}; } int find_coin(std::vector<int> b) { int ans = 0; for (int i = 0; i <= 63; 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...