제출 #385981

#제출 시각아이디문제언어결과실행 시간메모리
385981victoriadCoins (IOI17_coins)C++14
0 / 100
11 ms1776 KiB
#include "coins.h" using namespace std; vector<int> coin_flips(vector<int> b, int c) { vector<int>co; if(b[0]==0){ if(b[1]==0){ if(b[2]==0){ if(c==0){ co.push_back(63); } else if(c==1){ co.push_back(1); } else{ co.push_back(0); } } else{ if(c==0){ co.push_back(63); } else if(c==1){ co.push_back(0); } else{ co.push_back(1); } } } else{ if(b[2]==0){ if(c==0){ co.push_back(1); } else if(c==1){ co.push_back(63); } else{ co.push_back(2); } } else{ if(c==0){ co.push_back(1); } else if(c==1){ co.push_back(2); } else{ co.push_back(63); } } } } else{ if(b[1]==0){ if(b[2]==0){ if(c==0){ co.push_back(0); } else if(c==1){ co.push_back(2); } else{ co.push_back(63); } } else{ if(c==0){ co.push_back(0); } else if(c==1){ co.push_back(63); } else{ co.push_back(2); } } } else{ if(b[2]==0){ if(c==0){ co.push_back(63); } else if(c==1){ co.push_back(0); } else{ co.push_back(1); } } else{ if(c==0){ co.push_back(2); } else if(c==1){ co.push_back(1); } else{ co.push_back(0); } } } } return co; } int find_coin(vector<int> b) { int x=0; if(b[0]==1)x+=100; if(b[1]==1)x+=10; if(b[2]==1)x+=1; if(x==0||x==1||x==11){ return 0; } else if(x==10||x==101){ return 1; } else{ return 2; } }
#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...