Submission #1012359

#TimeUsernameProblemLanguageResultExecution timeMemory
1012359MahmytMCombo (IOI18_combo)C++17
0 / 100
49 ms344 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 #define yes cout<<"YES"<<endl #define no cout<<"NO"<<endl string guess_sequence(int n){ string ans=""; char z[5]; z[1]='A'; z[2]='B'; z[3]='X'; z[4]='Y'; while(true){ for(char a:z){ if(a==ans[0] and ans.size()!=0){ continue; } int in=press(ans); if(in==n){ return ans; } for(int i=in;i<n;i++){ ans[i]=a; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...