Submission #630555

#TimeUsernameProblemLanguageResultExecution timeMemory
630555teokakabadzeCluedo (IOI10_cluedo)C++17
0 / 100
8 ms208 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(b[j]) continue; for(k = 1; k < 7; k++) { 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...