# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
333343 | 2020-12-05T16:32:00 Z | valerikk | Password (RMI18_password) | C++17 | 80 ms | 620 KB |
#include <bits/stdc++.h> using namespace std; int query(string str); string guess(int n, int s) { string ans = ""; for (int i = 0; i < n; ++i) { for (char x = 'a'; x < 'a' + s; x++) { if (ans.size() < n) { ans.insert(ans.begin() + i, x); if (query(ans) != ans.size()) ans.erase(ans.begin() + i); } } } return ans; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 364 KB | Guessed the password with 210 queries. |
2 | Correct | 5 ms | 364 KB | Guessed the password with 482 queries. |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 620 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Runtime error | 80 ms | 620 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 364 KB | Guessed the password with 210 queries. |
2 | Correct | 5 ms | 364 KB | Guessed the password with 482 queries. |
3 | Runtime error | 1 ms | 620 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 364 KB | Guessed the password with 210 queries. |
2 | Correct | 5 ms | 364 KB | Guessed the password with 482 queries. |
3 | Runtime error | 1 ms | 620 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
4 | Halted | 0 ms | 0 KB | - |