# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1116314 | 2024-11-21T13:36:38 Z | Bula | Password (RMI18_password) | C++17 | 157 ms | 700 KB |
#include<bits/stdc++.h> using namespace std; int query(string p); string guess(int n, int s){ string t; for(char c = 'a'; c <= 'z'; c++){ string p; for(int i = 0; i < n; i++) p += c; int x = query(p); for(int i = 0; i < x; i++){ int l = 0, r = t.size(); while(l < r){ int m = (l + r) / 2; p.clear(); for(int j = 0; j < m; j++) p += t[j]; p += c; if(query(p) == m + 1) r = m; else l = m + 1; } p.clear(); for(int j = 0; j < l; j++) p += t[j]; p += c; for(int j = l; j < t.size(); j++) p += t[j]; t = p; } } return t; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 4 ms | 336 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 157 ms | 700 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 336 KB | Execution killed with signal 13 |
2 | Halted | 0 ms | 0 KB | - |