# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
411415 | 2021-05-25T09:16:17 Z | alextodoran | Cluedo (IOI10_cluedo) | C++17 | 0 ms | 0 KB |
/** ____ ____ ____ ____ ____ ||a |||t |||o |||d |||o || ||__|||__|||__|||__|||__|| |/__\|/__\|/__\|/__\|/__\| **/ #include <bits/stdc++.h> #include "cluedo.h" using namespace std; typedef long long ll; void Solve () { vector <int> va, vb, vc; for(int i = 1; i <= 6; i++) va.push_back(i); for(int i = 1; i <= 10; i++) vb.push_back(i); for(int i = 1; i <= 6; i++) vc.push_back(i); while(true) { int clue = Theory(va.back(), vb.back(), vc.back()); if(clue == 0) return; if(clue == 1) va.pop_back(); if(clue == 2) vb.pop_back(); if(clue == 3) vc.pop_back(); } }