Submission #1268515

#TimeUsernameProblemLanguageResultExecution timeMemory
1268515atillamaCluedo (IOI10_cluedo)C++20
100 / 100
3 ms408 KiB
#include "grader.h" #include "cluedo.h" #include <bits/stdc++.h> using namespace std; void Solve(){ set<int> st1, st2, st3; for(int i = 1; i <= 6; i++){ if(st1.find(i) != st1.end()) continue; for(int j = 1; j <= 10; j++){ if(st1.find(i) != st1.end()) continue; if(st2.find(j) != st2.end()) continue; for(int k = 1; k <= 6; k++){ if(st1.find(i) != st1.end()) continue; if(st2.find(j) != st2.end()) continue; if(st3.find(k) != st3.end()) continue; //cout << i << " " << j << " " << k << '\n'; int r = Theory(i, j, k); if(r == 0) return; if(r == 1) st1.insert(i); if(r == 2) st2.insert(j); if(r == 3) st3.insert(k); } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...