#include<bits/stdc++.h>
using namespace std;
int query(string q);
string guess(int n, int s) {
string ans;
for(int i=0; i<n; i++) ans += 'a';
if(s < 2) return ans;
int cnt = 0;
for(int i=0; i<n; i++){
for(char c='a'; c<'a'+s; c++){
ans[i] = c;
if(cnt < query(ans)){
cnt = query(ans);
break;
}
}
} return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Returned early from guess() after 190 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Returned early from guess() after 112 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
48 ms |
344 KB |
Returned early from guess() after 11574 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Returned early from guess() after 190 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Returned early from guess() after 190 queries. |
2 |
Halted |
0 ms |
0 KB |
- |