# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
773168 | aykhn | Password (RMI18_password) | C++14 | 5 ms | 308 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
// author: aykhn
using namespace std;
typedef long long ll;
int query(string str);
string guess(int n, int s)
{
string ans = "";
int prev = 0;
string x = "a";
for (int i = 0; i < s; i++)
{
ans = x + ans;
int X = query(ans);
prev = max(X, prev);
int sz = ans.length();
if (!X) ans = ans.substr(1, sz - 1);
for (int j = 1; j <= ans.length(); j++)
{
string asdasdasd = ans;
string asd = ans.substr(0, j);
string assd = "";
int sz = ans.length();
if (j != sz) assd = ans.substr(j, sz - j);
ans = asd;
ans += x;
ans += assd;
int y = query(ans);
if (y <= prev)
{
ans = asdasdasd;
}
else prev = y;
}
x[0]++;
}
return ans;
}
컴파일 시 표준 에러 (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... |