제출 #296951

#제출 시각아이디문제언어결과실행 시간메모리
296951Aldas25콤보 (IOI18_combo)C++14
10 / 100
77 ms544 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i <= (b); i++) #define REP(n) FOR(O, 1,(n)) #define f first #define s second #define pb push_back typedef vector<int> vi; typedef pair<int, int> pii; std::string guess_sequence(int n) { string buttons = "ABXY"; string ret = ""; FOR(i, 0, n-1) { FOR(j, 0, 3) { string ask = ret + buttons[j]; int coins = press(ask); if (coins > i) { ret += buttons[j]; break; } } } return ret; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...