#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
string guess_sequence(int N) {
string possible = "ABXY";
REP(i,N){
int nxtguess = press("ABXY");
if (nxtguess == 3) {
possible = "ABX";
}
if (nxtguess == 2) {
possible = "AB";
}
if (nxtguess == 1) {
possible = "A";
}
}
return possible;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Wrong Answer: wrong guess. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Incorrect |
0 ms |
200 KB |
Wrong Answer: wrong guess. |
3 |
Halted |
0 ms |
0 KB |
- |