Submission #1100358

#TimeUsernameProblemLanguageResultExecution timeMemory
1100358akzytrCombo (IOI18_combo)C++17
10 / 100
76 ms876 KiB
#include <bits/stdc++.h> using namespace std; template <typename T> using ve = vector<T>; template <typename T, int sz> using ar = array<T, sz>; typedef long long ll; #define pb push_back #define fi first #define se second #define endl '\n' int press(string p); string guess_sequence(int N) { string s= ""; for(int i = 0; i < N; i++){ for(char j : {'A', 'B', 'X', 'Y'}){ if(i > 0 && j == s[i]){ continue; } int sc = press(s + j); if(sc == (i+1)){ s += j; break; } } } return s; };
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...