제출 #1013306

#제출 시각아이디문제언어결과실행 시간메모리
1013306hasan2006Cluedo (IOI10_cluedo)C++17
0 / 100
1 ms344 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;

void Solve(){
    deque<int> v[4];
    for(int i = 1; i <= 6; i++)
        v[0].push_back(i) , v[2].push_back(i);
    for(int i = 1; i <= 10; i++)
        v[1].push_back(i);
    while(1){
        int a[4];
        for(int i = 1; i <= 3; i++)
            a[i] = v[i].back();
        int x = Theory(a[0] , a[1] , a[2]);
        if(!x) return;
        v[x].pop_back();
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...