# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
494380 | Itamar | Password (RMI18_password) | C++14 | 0 ms | 200 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 <iostream>
using namespace std;
int query(string str);
string rec(int n, int s, string x, int it, int siz) {
if (siz == n) {
return x;
}
for (int i = 0; i < s; i++) {
x[it] = 97 + i;
if (query(x) == x.size()) {
return rec(n, s, x, it + 1,siz+1);
}
}
x[it] = x[it - 1];
it--;
return rec(n, s, x, it,siz);
}
string guess(int n, int s) {
string x;
x.resize(n);
return rec(n, s, x, 0,0);
}
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... |