# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
682062 | convexhulltrick | Combo (IOI18_combo) | C++14 | 0 ms | 0 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
std::string a="A",b="B",c="X",d="Y",k,e;auto guess_sequence=[](int N){int f=p(a+b),i=2;k+=f?p(a)?(e=a,a=d),e:(e=b,b=d),e:p(c)?(e=c,c=d),e:d;for(;i<N;i++)f=p(k+a+k+b+a+k+b+b+k+b+c),k+=f-i-1?f-i?c:a:b;i--;if(N-1)k+=p(k+a)-i?a:p(k+b)-i?b:c;return k;};