# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
709240 | siewjh | Password (RMI18_password) | C++17 | 356 ms | 420 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int query(string q);
string guess(int n, int s){
string ans = "";
for (int i = 0; i < s; i++){
char ch = 'a' + i;
string str = "";
for (int k = 0; k < n; k++) str += ch;
int amt = query(str);
for (int ind = 0, j = 0; j < amt; j++){
for (;;ind++){
str = ans;
str.insert(str.begin() + ind, ch);
if (query(str) == str.size()) {
ans = str;
ind++;
break;
}
}
}
}
return ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |