Submission #199414

# Submission time Handle Problem Language Result Execution time Memory
199414 2020-02-01T10:30:23 Z shashwatchandra Cluedo (IOI10_cluedo) C++17
0 / 100
5 ms 376 KB
#include "grader.h"
#include "cluedo.h"
#include<bits/stdc++.h>
using namespace std;

void Solve(){
   set<int> a[3];
   for(int i = 1;i <= 10;i++){
   	if(i <= 6){
   		a[1].insert(i);
   	}
   	a[0].insert(i);
   	a[2].insert(i);
   }
   while(a[0].size()+a[1].size()+a[2].size() > 3){
   	int wow = Theory(*a[0].begin(),*a[1].begin(),*a[2].begin());
   	if(wow == 0)return;
   	wow--;
   	a[wow].erase(a[wow].begin());
   }
   Theory(*a[0].begin(),*a[1].begin(),*a[2].begin());
   return;
}
# Verdict Execution time Memory Grader output
1 Failed 5 ms 248 KB wrong parameter
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Failed 5 ms 376 KB wrong parameter
2 Halted 0 ms 0 KB -