# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
375252 | 2021-03-09T05:32:50 Z | Edbert2397 | 콤보 (IOI18_combo) | C++14 | 2 ms | 200 KB |
#include "combo.h" #include<bits/stdc++.h> using namespace std; std::string guess_sequence(int N) { char s[4] = {'A','B','X','Y'}; do{ string p = ""; for(int i = 0;i<3;i++){ p += s[i]; } int coins = press(p); if(coins == N){ return p; } }while(next_permutation(s,s + 4)); }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 200 KB | Execution failed because the return code was nonzero |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 200 KB | Wrong Answer: wrong guess. |
2 | Halted | 0 ms | 0 KB | - |