제출 #580622

#제출 시각아이디문제언어결과실행 시간메모리
580622Omar_ElgedawyCoins (IOI17_coins)C++14
0 / 100
2 ms976 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); } } 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...