제출 #1078390

#제출 시각아이디문제언어결과실행 시간메모리
1078390sqrteipiCluedo (IOI10_cluedo)C++14
100 / 100
8 ms596 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> void Solve() { bool m[6], l[10], w[6]; int a=0, b=0, c=0, i, rt; for (i=0; i<6; i++){ m[i] = true; l[i] = true; w[i] = true; } for (i=6; i<10; i++){ l[i] = true; } for (i=0; i<20; i++){ while (!m[a]){ a++; } while (!l[b]){ b++; } while (!w[c]){ c++; } rt = Theory(a+1, b+1, c+1); if (rt==0){ break; } else if (rt==1){ m[a] = false; } else if (rt==2){ l[b] = false; } else{ w[c] = false; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...