Submission #313668

#TimeUsernameProblemLanguageResultExecution timeMemory
313668baibhav26062008Combo (IOI18_combo)C++14
0 / 100
1 ms328 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0; i<(n); i++) string guess_sequence(int N){ string dir="ABXY"; REP(i,8000)dir+="ABXY"; string s=""; int x=0; REP(i,8000){ x=0; s=""; REP(j,8000){ for(int k=i;k<j;k++){ s+=dir[x]; //cout << s << endl; if(press(s)==N){ return s; } x++; } } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...