| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 759314 | Trumling | Combo (IOI18_combo) | C++14 | 56 ms | 564 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define F first
#define S second
#define enter cout<<'\n';
#define INF 99999999999999999
#define MOD 1000000007
#define all(x) x.begin(),x.end()
string guess_sequence(int N)
{
string dic[4]={"A","B","X","Y"};
ll first=-1;
string p;
for(int i=0;i<4;i++)
{
p="";
for(int j=0;j<4*N;j++)
{
p+=dic[i];
}
ll ans=press(p);
if(ans)
{
first =i;
break;
}
}
if(N==1)
return dic[first];
for(int j=1;j<N;j++)
for(int i=0;i<4;i++)
{
if(i==first)
continue;
p[j]=dic[i][0];
ll ans=press(p);
if(ans==j+1)
break;
}
string ans;
for(int i=0;i<N;i++)
ans+=p[i];
return ans;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
