Submission #313678

#TimeUsernameProblemLanguageResultExecution timeMemory
313678baibhav26062008Combo (IOI18_combo)C++14
0 / 100
1 ms200 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"; string ans=""; REP(i,N){ ans = ""; ans+=dir[i]; REP(j,N){ if (j == i) continue; ans += dir[j]; // cout << press(ans) << endl; if (press(ans)==N){ // cout << press(ans) << endl; // cout << ans << endl; return ans; } } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...