# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
852842 | LucaLucaM | Password (RMI18_password) | C++17 | 1 ms | 440 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//#ifndef PASSWORD_H_INCLUDED
//#define PASSWORD_H_INCLUDED
#include <bits/stdc++.h>
#warning That's the baby, that's not my baby
typedef long long ll;
using namespace std;
int query (string str);
string guess (int n, int s) {
string answer = "";
while ((int) answer.size() < n) {
int m = (int) answer.size();
for (int i = 0; i < s; i++) {
string q = answer;
while ((int) q.size() < n) {
q += char(i + 'a');
}
int k = query(q);
if (k != m) {
for (int j = m; j < k; j++) {
answer += char(i + 'a');
}
break;
}
}
assert((int) answer.size() != m);
}
return answer;
}
//#endif // PASSWORD_H_INCLUDED
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |