이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "grader.h"
#include "cluedo.h"
#include<bits/stdc++.h>
using namespace std;
void Solve(){
srand(time(NULL));
vector<int> a, b, c;
for (int i = 1; i <= 6; i++) {
a.push_back(i);
b.push_back(i);
c.push_back(i);
}
for (int i = 7; i <= 10; i++) {
b.push_back(i);
}
random_shuffle(a.begin(), a.end());
random_shuffle(b.begin(), b.end());
random_shuffle(c.begin(), c.end());
int i = 0, j = 0, k = 0;
while(1) {
int v = Theory(a[i], b[j], c[k]);
if (v == 0) {
return;
} else if (v == 1) {
i++;
} else if (v == 2) {
j++;
} else if (v == 3) {
k++;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |