Submission #859371

#TimeUsernameProblemLanguageResultExecution timeMemory
859371multifanblinksCoins (IOI17_coins)C++14
100 / 100
8 ms1892 KiB
#include "coins.h" #include<bits/stdc++.h> using namespace std; std::vector<int> coin_flips(std::vector<int> b, int c) { std::vector<int> flips(1); for (int i = 0; i < 64; ++i) if (b[i]) c ^= i; flips[0] = c; return flips; } int find_coin(std::vector<int> b) { int c = 0; for (int i = 0; i < 64; ++i) if (b[i]) c ^= i; return c; }
#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...