Submission #580628

#TimeUsernameProblemLanguageResultExecution timeMemory
580628Omar_ElgedawyCoins (IOI17_coins)C++14
25 / 100
11 ms1544 KiB
#include <bits/stdc++.h> // #include "grader.cpp" using namespace std; vector<int> coin_flips(vector<int> b, int c) { vector<int>inv; for(int i=0;i<8;i++){ int op=(c&(1<<i))>=1; if(b[i]!=op){ inv.push_back(i); } } if(inv.size()==0){ inv.push_back(40); } return inv; } int find_coin(std::vector<int> b){ int ans=0; for(int i=0;i<6;i++){ ans|=((1<<i)*b[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...