//#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
int query(string str);
string guess(int n, int ss){
string s="";
for(int i=1;i<=n;i++){
s+='a';
}
int k=1;
for(int i=1;i<=n;i++){
bool q=true;
k++;
int kk=1;
for(char c='a';kk<=ss;kk++,c++){
s[i-1]=c;
if(query(s)==k){
q=false;
break;
}
}
if(q){
k--;
s[i-1]='a';
}
}
return s;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
200 KB |
Returned early from guess() after 179 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
200 KB |
Returned early from guess() after 101 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
141 ms |
200 KB |
Returned early from guess() after 11352 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
200 KB |
Returned early from guess() after 179 queries. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
200 KB |
Returned early from guess() after 179 queries. |
2 |
Halted |
0 ms |
0 KB |
- |