제출 #295214

#제출 시각아이디문제언어결과실행 시간메모리
295214re404d콤보 (IOI18_combo)C++11
10 / 100
77 ms580 KiB
#include "combo.h"
using namespace std;

string guess_sequence(int N)
{
    string s = "", temp;
    string l = "ABXY";
    int i, v, j;
    
    for (i = 1; i<=N; i++)
    {
        for (j = 0; j<4; j++)
        {
            temp = s + l[j];
            v = press(temp);
            if (v == i)
            {
                s = s + l[j];
                break;
            }
        }
    }
    return s;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...