Submission #1109055

#TimeUsernameProblemLanguageResultExecution timeMemory
1109055m_bezrutchkaCluedo (IOI10_cluedo)C++14
100 / 100
18 ms588 KiB
#include "grader.h" #include "cluedo.h" bool bad[11][3]; void Solve(){ for (int i = 0; i < 3; i++) { for (int j = 0; j <= 10; j++) { bad[j][i] = false; } } for (int a = 1; a <= 6; a++) { for (int b = 1; b <= 10; b++) { for (int c = 1; c <= 6; c++) { if (bad[a][0] || bad[b][1] || bad[c][2]) continue; int resp = Theory(a, b, c); if (resp == 0) { return; } if (resp == 1) bad[a][0] = true; if (resp == 2) bad[b][1] = true; if (resp == 3) bad[c][2] = true; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...