#include <bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"
using namespace std;
void Solve(){
int r;
int a=0,b=0,c=0;
for(int i=1;i<=6;i++)
{
r= Theory(i,i,i);
if(r==0) return;
if(r==3) {a=i,b=i; break;}
else if(r!=1) {a=i;break;}
}
if(!b) {
int count=1;
for (int i = 1; i <= 10; i++) {
r = Theory(a, i, count);
if (r == 0) return;
if (r == 3) {
b = i;
break;
}
else if (r == 2) {
c=count;
}
if(count<6) count++;
}
if(c) {
r = Theory(a, b, c);
if (r == 0) return;
}
}
else
{
for(int i=1;i<=6;i++)
{
r= Theory(a,b,i);
if(r==0) return;
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Failed |
1 ms |
200 KB |
wrong parameter |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
200 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |