| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 349517 | David_M | 콤보 (IOI18_combo) | C++14 | 2 ms | 256 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "combo.h"
#include <string>
#define p press
#define r return
std::string e,a="AAABXY";
std::string guess_sequence(int N){
e=a[p("XY")*2+p("BY")+2],a[e[0]%21]='A';if(!--N)r e;for(int i=1;i<N;i++)e+=a[p(e+a[4]+e+a[5]+a[3]+e+a[5]+a[4]+e+a[5]+a[5])-i+3];if(p(e+a[3])>N)r e+a[3];if(p(e+a[4])>N)r e+a[4];r e+a[5];}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
