제출 #295817

#제출 시각아이디문제언어결과실행 시간메모리
2958171723191831Coins (IOI17_coins)C++14
0 / 100
9 ms1520 KiB
#include "coins.h" #include<bits/stdc++.h> using namespace std; vector<int> coin_flips(vector<int> b, int c) { vector<int> flips; int cnt0=0; for(int i=0;i<2;i++) if(b[i]==0)cnt0++; if((cnt0==2||cnt0==0)&&c!=1) flips.push_back(0); else if(cnt0==1&&c!=1) flips.push_back(0); else flips.push_back(5); return flips; } int find_coin(vector<int> b) { int cnt0=0; for(int i=0;i<2;i++) if(b[i]==0)cnt0++; if(cnt0==2||cnt0==0)return 0; else return 1; }
#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...