Submission #648054

#TimeUsernameProblemLanguageResultExecution timeMemory
648054ojoConmigoCoins (IOI17_coins)C++17
25 / 100
8 ms1560 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] == b[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...