| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 199502 | monus1042 | Combo (IOI18_combo) | C++17 | 88 ms | 432 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int N) {
string aux("ABXY");
string use="";
string S="";
int coins=0;
for (int i=0; i<4; i++){
string gg;
gg.push_back(aux[i]);
coins=press(gg);
if (coins){
S+=aux[i];
for(int j=0; j<4; j++) if (aux[j]!=aux[i]) use.push_back(aux[j]);
break;
}
}
while((int)S.size()!=N){
for (int i=0; i<3; i++){
S+=use[i];
int ne=press(S);
if (ne==coins+1){
coins=ne;
break;
}else S.pop_back();
}
}
return S;
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
