| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1327413 | dashka | Password (RMI18_password) | C++20 | 1 ms | 412 KiB |
#include <bits/stdc++.h>
using namespace std;
int query(string str);
string guess(int n, int s) {
string pw = "";
vector<bool> used(s, false);
for (int i = 0; i < n; i++) {
for (int c = 0; c < s; c++) {
if (used[c]) continue;
char ch = 'a' + c;
// pw + ch дараа ch-г n удаа давтна
// ингэснээр ch нууц үгд байвал заавал олно
string t = pw + string(n + 1, ch);
if ((int)query(t) >= i + 1) {
pw += ch;
used[c] = true;
break;
}
}
}
return pw;
}| # | 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... | ||||
