제출 #931985

#제출 시각아이디문제언어결과실행 시간메모리
931985ntmin콤보 (IOI18_combo)C++14
0 / 100
1 ms596 KiB
#ifndef ntmin
    #include "combo.h";
#endif // ntmin

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<int, ll> pil;
#define fi first
#define sc second

vector<string> p = {"A", "B", "X", "Y"};

string guess_sequence(int N){
    string ans = "";
    for(string& t : p){
        if(press(t)){
            swap(t, p[3]);
            ans += t;
            p.pop_back();
            break;
        } 
    }

    for(int i = 1; i < N; ++i){
        bool ok = 0;
        for(int j = 0; j < 2; ++j){
            if(press(p[j])){
                ok = 1;
                ans.append(p[j]);
                break;
            }
        }
        if(!ok) ans.append(p[2]);
    }
    return ans;
}

컴파일 시 표준 에러 (stderr) 메시지

combo.cpp:2:23: warning: extra tokens at end of #include directive
    2 |     #include "combo.h";
      |                       ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...