Submission #487106

# Submission time Handle Problem Language Result Execution time Memory
487106 2021-11-14T10:16:40 Z Karuk Password (RMI18_password) C++17
0 / 100
364 ms 200 KB
#include<bits/stdc++.h>
using namespace std;
int query(string str);
string guess(int n , int k)
{
    string s;
    for(int i=0;i<n;i++)
    {
        s+='a';
    }
    while(1)
    {
        for(int i=0;i<n;i++)
        {
            if(s[i]==k+'a'-1)s[i]='a';
            else {s[i]++;i=n+1;}
        }
        int x=query(s);
        if(x==n)return s;
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 364 ms 200 KB Could not guess the password with 50000 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 290 ms 200 KB Could not guess the password with 50000 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 292 ms 200 KB Could not guess the password with 50000 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 364 ms 200 KB Could not guess the password with 50000 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 364 ms 200 KB Could not guess the password with 50000 queries.
2 Halted 0 ms 0 KB -