Submission #285380

#TimeUsernameProblemLanguageResultExecution timeMemory
285380Pichon5Combo (IOI18_combo)C++17
5 / 100
1 ms200 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N){ char arr[4]={'A','B','X','Y'}; string s="",ss; int c=0; for(int i=1;i<=N;i++){ for(int l=0;l<4;l++){ ss=s; c++; if(s[0]==arr[l]){ continue; } ss+=arr[l]; if(press(ss)==i){ s=ss; break; } } } if(c<=N+10){ while(c<=N+10){ press("XX"); c++; } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...