Submission #313632

#TimeUsernameProblemLanguageResultExecution timeMemory
313632baibhav26062008Combo (IOI18_combo)C++14
0 / 100
1 ms200 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N) { int x = 4; string all = "ABXY"; string s(N,'A'); for(int i=0;i<N;i++) { bool found=false; for(int j=0;j<x;j++) { if (found) break; s[i] = all[j]; // cout << press(s) << endl; // reverse(s , s+s.size()); if (press(s)-1 == i) { found = true; break; } else continue; } if (found) continue; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...