Submission #1335581

#TimeUsernameProblemLanguageResultExecution timeMemory
1335581trandaihao5555Cluedo (IOI10_cluedo)C++20
0 / 100
0 ms348 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>

using namespace std;

//Theory(1,2,3);

const int c[] = {0,6,10,6};
bool check[4][16];

void Solve(){
    for(int i=1;i<=3;i++) for(int j=1;j<=c[i];j++) check[i][j] = false;
    while(true) {
        int tmp[4];
        for(int i=0;i<3;i++) {
            for(int j=0;j<c[i];j++) {
                if(!check[i][j]) {
                    tmp[i] = j;
                    break;
                }
            }
        }
        int r = Theory(tmp[1],tmp[2],tmp[3]);
        if (!r) return;
        check[r][tmp[r]] = true;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...