Submission #1084358

#TimeUsernameProblemLanguageResultExecution timeMemory
1084358MahmytMCombo (IOI18_combo)C++17
10 / 100
26 ms420 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 s=""; for(int i=0;i<N;i++){ s+='A'; } int in=0; char a='B'; while(in<N){ in=press(s); for(int i=in;i<N;i++){ s[i]=a; } if(a=='A') a='B'; else if(a=='B') a='X'; else if(a=='X') a='Y'; else if(a=='Y') a='A'; } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...