Submission #1009398

#TimeUsernameProblemLanguageResultExecution timeMemory
1009398megakari콤보 (IOI18_combo)C++17
5 / 100
43 ms344 KiB
#include "combo.h"
using namespace std;

string guess_sequence(int N) {
  int c=0;
  string S = "";
  string k = "ABXY";
  while (c < 3) {
      for (int i = 0; i < 4; ++i) {
          if (c < 3) {
            int coins = press(S+k[i]);
            if (coins > c) {
                S += k[i];
                c++;
            }
          }
      }
  }
  return S;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...