Submission #1084363

#TimeUsernameProblemLanguageResultExecution timeMemory
1084363MahmytMCombo (IOI18_combo)C++17
30 / 100
19 ms388 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'; if(a==s[0]){ 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...