# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
344929 | 2021-01-06T18:57:26 Z | Alma | 콤보 (IOI18_combo) | C++14 | 0 ms | 200 KB |
#include <iostream> #include <vector> #include <string> #include <combo.h> using namespace std; string guess_sequence(int N) { string S = ""; vector<char> buttons = {'A', 'B', 'X', 'Y'}; for (int i = 0; i < buttons.size(); i++) { if (press(S + buttons[i]) == 1) { S += buttons[i]; buttons.erase(buttons.begin()+i); } } for (int j = 2; j <= N; j++) { for (char c: buttons) { if (press(S + c) == j) {S += c;} } } return S; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 200 KB | Wrong Answer: wrong guess. |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 200 KB | Wrong Answer: wrong guess. |
2 | Halted | 0 ms | 0 KB | - |