Submission #835062

#TimeUsernameProblemLanguageResultExecution timeMemory
835062josiftepeCoins (IOI17_coins)C++14
100 / 100
8 ms1552 KiB
#include "coins.h" #include <vector> std::vector<int> coin_flips(std::vector<int> b, int c) { int xor_all = 0; for(int i = 0; i < (int) b.size(); i++) { if(b[i]) { xor_all ^= i; } } std::vector<int> v = {c ^ xor_all}; return v; } int find_coin(std::vector<int> b) { int xor_result = 0; for(int i = 0; i < (int) b.size(); i++) { if(b[i]) { xor_result ^= i; } } return xor_result; }
#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...