# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
755898 | MohamedFaresNebili | Password (RMI18_password) | C++14 | 600 ms | 288 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
string st; int k;
int query(string str);
string guess(int n, int s) {
string S(n, 'a');
int freq[s]{0};
for(int l = 0; l < s; l++) {
for(int i = 0; i < n; i++)
S[i] = char('a' + l);
freq[l] = query(S);
}
S = "";
for(int l = 0; l < s; l++) {
for(int i = 0, last = 0; i < freq[l]; i++) {
for(int j = last;; j++) {
string str = "";
for(int e = 0; e < j; e++) str.push_back(S[e]);
str.push_back(char('a' + l));
for(int e = j; e < S.size(); e++)
str.push_back(S[e]);
if(query(str) == str.size()) {
S = str; last++; break;
}
}
}
}
return S;
}
컴파일 시 표준 에러 (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... |