# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
333346 | 2020-12-05T16:39:34 Z | valerikk | Password (RMI18_password) | C++17 | 204 ms | 632 KB |
#include <bits/stdc++.h> using namespace std; int query(string str); string guess(int n, int s) { string cur = ""; string res = ""; for (int i = 0; i < n; i++) { while (true) { bool was = false; for (char x = 'a'; x < 'a' + s; x++) { cur.insert(cur.begin() + i, x); if (query(cur) == cur.size()) was = true; else cur.erase(cur.begin() + i); } if (!was) break; } assert(cur.size() >= i + 1); res.push_back(cur[i]); } return res; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 4 ms | 364 KB | Execution killed with signal 13 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 3 ms | 364 KB | Execution killed with signal 13 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 204 ms | 632 KB | Execution killed with signal 13 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 4 ms | 364 KB | Execution killed with signal 13 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 4 ms | 364 KB | Execution killed with signal 13 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |