(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #295816

#TimeUsernameProblemLanguageResultExecution timeMemory
2958161723191831Coins (IOI17_coins)C++14
0 / 100
3 ms1536 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); 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...