#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 dir="ABXY";
string ans="";
REP(i,N){
ans = "";
ans+=dir[i];
REP(j,N){
if (j == i) continue;
ans += dir[j];
cout << press(ans) << endl;
if (press(ans)==N){
cout << press(ans) << endl;
cout << ans << endl;
return ans;
}
}
}
return ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
1 ms |
200 KB |
Execution failed because the return code was nonzero |
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 |
- |