Submission #787622

#TimeUsernameProblemLanguageResultExecution timeMemory
787622baneCluedo (IOI10_cluedo)C++17
100 / 100
11 ms272 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;
void Solve(){
   stack<int>f,s,t;
   for (int i = 0; i < 6; i++){
      f.push(i+1);
      t.push(i+1);
   }
   for (int i = 0; i < 10; i++){
      s.push(i+1);
   }
   int r = -1;
   while(r != 0){
      r = Theory(f.top(),s.top(),t.top());
      if (r == 1)f.pop();
      else if (r == 2)s.pop();
      else if (r == 3)t.pop(); 
   }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...