제출 #958342

#제출 시각아이디문제언어결과실행 시간메모리
958342kilkuwuCoins (IOI17_coins)C++17
100 / 100
8 ms1996 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { int xor_sum = 0; int n = b.size(); for (int i = 0; i < n; i++) { if (b[i]) xor_sum ^= i; } int flip = c ^ xor_sum; return {flip}; } int find_coin(std::vector<int> b) { int xor_sum = 0; int n = b.size(); for (int i = 0; i < n; i++) { if (b[i]) xor_sum ^= i; } return xor_sum; }
#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...