Submission #393092

#TimeUsernameProblemLanguageResultExecution timeMemory
393092strawberry2005Coins (IOI17_coins)C++17
100 / 100
14 ms1656 KiB
#include "coins.h" #include<bits/stdc++.h> using namespace std; vector<int> coin_flips(vector<int> b, int c) { vector<int> ans; int f=0; for(int i=0;i<64;i++) if(b[i]) f^=i; ans.push_back(f^c); return ans; } int find_coin(vector<int> b) { int f=0; for(int i=0;i<64;i++) if(b[i]) f^=i; return(f); }
#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...