Submission #648053

#TimeUsernameProblemLanguageResultExecution timeMemory
648053ojoConmigoCoins (IOI17_coins)C++17
0 / 100
9 ms1432 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { std::vector<int> flips(1); flips[0] = 63; if(b[0] == b[1] && b[1] == b[2]){ flips[0] = c; }else{ for(int i=0; i<3; i++){ if(c == i)continue; if(b[i] == c){ flips[0] = i; } } } return flips; } int find_coin(std::vector<int> b) { if (b[0] == b[1]) { return 2; }else if(b[0] == b[2]){ return 1; }else return 0; }
#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...