| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 430834 | Belgutei | Combo (IOI18_combo) | C++17 | 57 ms | 592 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "combo.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mk make_pair
string p,tur;
int coin;
vector<char> v;
std::string guess_sequence(int N) {
//
p='A';
coin=press(p);
if(coin==0){
p='B';
coin=press(p);
if(coin==0){
p='X';
coin=press(p);
if(coin==0) p='Y';
}
}
char ch=p[0];
if(ch!='A') v.pb('A');
if(ch!='B') v.pb('B');
if(ch!='X') v.pb('X');
if(ch!='Y') v.pb('Y');
for(int i=2; i<=N; i++){
tur=p+v[0]+p+v[1];
coin=press(tur);
if(coin==p.size()){
p+=v[2];
continue;
}
tur=p+v[0];
coin=press(tur);
if(coin==p.size()) p+=v[1];
else p+=v[0];
}
return p;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
