제출 #1099338

#제출 시각아이디문제언어결과실행 시간메모리
1099338ZflopCluedo (IOI10_cluedo)C++14
100 / 100
8 ms348 KiB
#include "grader.h" #include "cluedo.h" #include <bits/stdc++.h> using namespace std; void Solve(){ vector<bool>K(11,1),J(10,1); for (int i = 1; i <= 6;++i) { bool ok1 = true; for (int j = 1; j <= 6;++j) { bool ok3 = J[j]; for (int k = 1; k <= 10 && ok1 && ok3;++k) { if(K[k] == false) continue; int r = Theory(i,k,j); if(r == 1) ok1 = false; if(r == 3) ok3 = J[j] = false; if(r == 2) { K[k] = false; continue; } if(r == 0) return; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...