Submission #1012360

#TimeUsernameProblemLanguageResultExecution timeMemory
1012360MahmytMCombo (IOI18_combo)C++17
10 / 100
52 ms960 KiB
#include<bits/stdc++.h> #include "combo.h" using namespace std; #define ll long long #define ff first #define ss second #define pb push_back string guess_sequence(int N){ string ans=""; for(int i=1;i<=N;i++){ int z=press(ans+'A'); int k=ans.size(); if(z==k+1){ ans+='A'; continue; } z=press(ans+'B'); if(z==k+1){ ans+='B'; continue; } z=press(ans+'X'); if(z==k+1){ ans+='X'; continue; } z=press(ans+'Y'); if(z==k+1){ ans+='Y'; continue; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...