Submission #588680

#TimeUsernameProblemLanguageResultExecution timeMemory
588680shezittCombo (IOI18_combo)C++14
10 / 100
65 ms556 KiB
#include "combo.h" #include <bits/stdc++.h> #define dbg(x) cerr << #x << ": " << x << endl; #define raya cerr << "======================" << endl; using namespace std; string guess_sequence(int N) { string s = ""; string aux = "ABXY"; for(int i=0; i<N; ++i){ for(auto c : aux){ if(i > 0 && c == s[0]){ continue; } s += c; int p = press(s); if(p == i+1){ break; } s.pop_back(); } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...