Submission #383830

#TimeUsernameProblemLanguageResultExecution timeMemory
383830MODDICluedo (IOI10_cluedo)C++14
50 / 100
58 ms364 KiB
#include "grader.h" #include "cluedo.h" #include <bits/stdc++.h> void Solve(){ bool killer[6], locations[10], weapon[6]; memset(killer, true,sizeof(killer)); memset(locations, true, sizeof(locations)); memset(weapon, true, sizeof(weapon)); for(int i = 1; i <= 6; i++){ if(!killer[i-1]) continue; for(int j = 1; j <= 10; j++){ if(!locations[j-1]) continue; for(int k = 1; k <= 6; k++){ if(!weapon[k-1]) continue; int call = Theory(i, j, k); if(call == 0) return ; if(call == 1) killer[i-1] = false; if(call == 2) locations[j-1] = false; if(call == 3) weapon[k-1] = false; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...