# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
861673 | cirnepq | Coins (IOI17_coins) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "coins.h"
std::vector<int> coin_flips(std::vector<int> b, int c) {
std::vector<int> flips(1);
if (c==0) {
if (b[0]==1) flips[0]=63;
else flips[0]=1;
}
else {
if (b[0]==0) flips[0]=63;
else flips0]=1;
}
return flips;
}
int find_coin(std::vector<int> b) {
if (b[0] == 1){
return 0;
}
return 1;
}