Submission #130115

#TimeUsernameProblemLanguageResultExecution timeMemory
130115HungAnhGoldIBO2020Combo (IOI18_combo)C++14
10 / 100
87 ms1976 KiB
#include<iostream> #include "combo.h" using namespace std; char ohyeah[]={'X','Y','A','B'}; string guess_sequence(int N){ string cac=""; int i,j; for(i=0;i<N;i++){ for(j=0;j<4;j++){ if(i!=0&&cac[0]==ohyeah[j]){ continue; } if(press(cac+ohyeah[j])==i+1){ cac+=ohyeah[j]; break; } } } return cac; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...