# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
940307 | 2024-03-07T07:56:45 Z | HappyCapybara | Cluedo (IOI10_cluedo) | C++17 | 0 ms | 0 KB |
#include "grader.h" #include "cluedo.h" #include<vector> using namespace std; void Solve(){ vector<bool> m(6, true), l(10, true), w(6, true); while (true){ int M=0, L=0, W=0; while (!m[M]) M++; while (!l[L]) L++; while (!w[W]) W++; int x = theory(M+1, L+1, W+1); if (x == 0) return; if (x == 1) m[M] = false; if (x == 2) l[L] = false; if (x == 3) w[W] = false; } }