# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
288406 | fgojko | Cluedo (IOI10_cluedo) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
//#define THEORY
using namespace std;
const int boundries[3] = {6, 10, 6};
#ifdef THEORY
int Theory(int m, int l, int w){
cout << "Murderer: " << m << endl;
cout << "Location: " << l << endl;
cout << "Weapon: " << w << endl;
int res;
cin >> res;
return res;
}
#endif // THEORY
void Solve(){
int theories[3] = {1, 1, 1};
int res = Theory(theories[0], theories[1], theories[2]);
while(res != 0){
++theories[res-1];
res = Theory(theories[0], theories[1], theories[2]);
}
}