Submission #285296

#TimeUsernameProblemLanguageResultExecution timeMemory
285296Pichon5Combo (IOI18_combo)C++17
0 / 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=""; char c='p'; for(int i=0;i<N;i++){ for(int l=0;l<4;l++){ string ss=s; if(arr[l]==c){ continue; } ss+=arr[l]; if(press(ss)==i+1){ s=ss; if(i==0){ c=arr[i]; } break; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...