Submission #755860

# Submission time Handle Problem Language Result Execution time Memory
755860 2023-06-10T16:56:39 Z vjudge1 Password (RMI18_password) C++17
0 / 100
110 ms 208 KB
///YOU WILL MAKE IT
#include<bits/stdc++.h>
using namespace std;
int query(string s);
string guess(int n,int s){
    string cur="";
    for(int j=1;j<=n;j++){
     for(int i=0;i<s;i++){
        char c=i+'a';
        if(query(cur+c)==j){
            cur+=c;
            break;
        }
     }
    }
    return cur;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 208 KB Returned early from guess() after 187 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 208 KB Returned early from guess() after 77 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 110 ms 208 KB Returned early from guess() after 11504 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 208 KB Returned early from guess() after 187 queries.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 208 KB Returned early from guess() after 187 queries.
2 Halted 0 ms 0 KB -