제출 #630557

#제출 시각아이디문제언어결과실행 시간메모리
630557teokakabadzeCluedo (IOI10_cluedo)C++17
100 / 100
12 ms276 KiB
#include "grader.h" #include "cluedo.h" void Solve() { int r, i, j, k, a[11], b[11], c[11]; for(i = 1; i <= 10; i++) a[i] = 0, b[i] = 0, c[i] = 0; for(i = 1; i < 7; i++) { if(a[i]) continue; for(j = 1; j < 11; j++) { if(a[i]) break; if(b[j]) continue; for(k = 1; k < 7; k++) { if(a[i] || b[j]) break; if(c[k]) continue; r = Theory(i, j, k); if(r == 1) a[i]++; if(r == 2) b[j]++; if(r == 3) c[k]++; if (!r) return; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...