# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
886853 | Lalic | Cluedo (IOI10_cluedo) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#include "grader.h"
#include "cluedo.h"
#define push_back pb
#define all(x) x.begin(), x.end()
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
void Solve(){
vector<int> loc, weap, who;
for(int i=1;i<=6;i++) loc.pb(i), who.pb(i);
for(int i=1;i<=10;i++) weap.pb(i);
shuffle(all(loc), rng);
shuffle(all(weap), rng);
shuffle(all(who), rng);
array<int, 3> id={0, 0, 0};
while(1){
int curr=Theory(id[0], id[1], id[2]);
if(curr==0) return;
id[curr-1]++;
}
}