#include "grader.h"
#include "cluedo.h"
#include <set>
void Solve(){
int r;
std::set<int> mur, place, weapon;
for(int i=1; i<=6; i++)
{
for(int j=1; j<=10; j++)
{
for(int k=1; k<=6; k++)
{
if(mur.count(i) == 0 && place.count(j) == 0 && weapon.count(k))
{
r = Theory(i, j, k);
if(r == 1) mur.insert(i);
else if(r == 2) place.insert(j);
else if(r == 3) weapon.insert(k);
else if(r == 0) return ;
}
}
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
208 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
208 KB |
Incorrect |
2 |
Halted |
0 ms |
0 KB |
- |