제출 #313308

#제출 시각아이디문제언어결과실행 시간메모리
313308Jarif_Rahman콤보 (IOI18_combo)C++17
10 / 100
131 ms440 KiB
#include "combo.h" #include <bits/stdc++.h> #define pb push_back #define f first #define sc second using namespace std; typedef long long int ll; typedef string str; str guess_sequence(int n){ str s = ""; int r = 0; while(n--){ int a = press(s+"A"); int b = press(s+"B"); int x = press(s+"X"); int y = press(s+"Y"); if(a > r){ r = a; s+="A"; continue; } if(b > r){ r = b; s+="B"; continue; } if(x > r){ r = x; s+="X"; continue; } if(y > r){ r = y; s+="Y"; continue; } cout << s << "\n"; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...