# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
715478 | vjudge1 | Cluedo (IOI10_cluedo) | C++11 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"
using namespace std;
static int M,L,W,gotit,cnt,maxcnt;
void Solve()
{
int arr[4]= {1,1,1,1};
while(Theory(arr[1],arr[2],arr[3]))
{
int now=Theory(arr[1],arr[2],arr[3]);
arr[now]++;
}
return;
}
int main()
{
while (3 == scanf("%d%d%d",&M,&L,&W))
{
cnt = gotit = 0;
Solve();
if (cnt > maxcnt) maxcnt = cnt;
if (!gotit)
{
printf("NO\n");
return 91;
}
}
printf("OK %d\n",maxcnt);
return 0;
}