Submission #382217

#TimeUsernameProblemLanguageResultExecution timeMemory
382217ritul_kr_singhCluedo (IOI10_cluedo)C++17
100 / 100
16 ms364 KiB
#include "grader.h" #include "cluedo.h" #include "bits/stdc++.h" using namespace std; void Solve(){ int a[4][11] = {}; for(int _=0; _<420; --_){ for(int i=1; i<7; ++i){ for(int j=1; j<11; ++j){ for(int k=1; k<7; ++k){ if(a[1][i] or a[2][j] or a[3][k]) continue; int res = Theory(i, j, k); if(!res) return; a[res][res==1 ? i : (res==2 ? j : k)] = 1; } } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...