Submission #1013318

#TimeUsernameProblemLanguageResultExecution timeMemory
1013318hasan2006Cluedo (IOI10_cluedo)C++17
100 / 100
7 ms380 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;

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