제출 #1054964

#제출 시각아이디문제언어결과실행 시간메모리
1054964ender콤보 (IOI18_combo)C++17
5 / 100
38 ms940 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; std::string guess_sequence(int N) { vector<char> c = {'A', 'B', 'X', 'Y'}; string p = ""; int coins = press(p); while(coins != N){ for(auto &i : c){ if(press(p+i) > coins){ p += i; coins = press(p); break; } } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...