Submission #545660

#TimeUsernameProblemLanguageResultExecution timeMemory
545660aun5xCombo (IOI18_combo)C++14
10 / 100
57 ms544 KiB
#include "combo.h" using namespace std; string guess_sequence(int N) { string p = "ABXY"; int score = 0; char out = 'Z'; string guess = ""; while (score != N) { for (char c: p) { if (c != out) { int res = press(guess+c); if (res - score > 0){ score++; guess += c; if (score == 1) out = c; break; } } } } return guess; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...