Submission #519949

#TimeUsernameProblemLanguageResultExecution timeMemory
519949sliviuCluedo (IOI10_cluedo)C++17
100 / 100
12 ms272 KiB
#include <bits/stdc++.h> #include "grader.h" #include "cluedo.h" using namespace std; void Solve() { vector<vector<int>> pos = { {1,2,3,4,5,6},{1,2,3,4,5,6,7,8,9, 10}, {1,2,3,4,5,6} }; for (int i = 1;i <= 3;++i) while (pos[i - 1].size() > 1) { int r = Theory(pos[0].back(), pos[1].back(), pos[2].back()); if (!r) return; pos[r - 1].pop_back(); } Theory(1, 1, 1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...