# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
494375 | 2021-12-15T10:57:47 Z | Itamar | Password (RMI18_password) | C++14 | 1 ms | 200 KB |
#include <iostream> using namespace std; int query(string str); string rec(int n, int s, string x, int it) { if (x.size() == n) { return x; } for (int i = 0; i < s; i++) { x[it] = 96 + i; if (query(x) == x.size()) { return rec(n, s, x, it + 1); } } x[it] = x[it - 1]; it--; return rec(n, s, x, it); } string guess(int n, int s) { string x; return rec(n, s, x, 0); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1 ms | 200 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 0 ms | 200 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 0 ms | 200 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1 ms | 200 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1 ms | 200 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |