# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
349523 | David_M | Combo (IOI18_combo) | C++14 | 56 ms | 508 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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... |