Submission #500038

#TimeUsernameProblemLanguageResultExecution timeMemory
500038LucaIlieCombo (IOI18_combo)C++17
10 / 100
65 ms536 KiB
#include <iostream>

#include "combo.h"

using namespace std;

string guess_sequence( int n ) {
    int i;
    string ans;

    for ( i = 1; i <= n; i++ ) {
        if ( press( ans + 'A' ) == i )
            ans += 'A';
        else if ( press( ans + 'B' ) == i )
            ans += 'B';
        else if ( press( ans + 'X' ) == i )
            ans += 'X';
        else
            ans += 'Y';
    }

    return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...