Submission #1305414

#TimeUsernameProblemLanguageResultExecution timeMemory
1305414JohanCluedo (IOI10_cluedo)C++20
100 / 100
4 ms400 KiB
#include "grader.h"
#include "cluedo.h"
#include "bits/stdc++.h"
using namespace std;

void Solve(){
	int i = 1;
	array < int , 4 > ar = {0, 1, 1, 1};
	while(1){
		int x = Theory(ar[1], ar[2], ar[3]);
		if(x == 0)return;
		if(x != i)i = x;
		ar[i]++;
	}		
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...