Submission #315183

# Submission time Handle Problem Language Result Execution time Memory
315183 2020-10-22T04:08:29 Z yjojdkgk5bp CONSUL (info1cup19_consul) C++14
0 / 100
1 ms 384 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
void solve(int n)
{
	int v,vis[1001]={0},sum=0;
	for(int i=1; i<=n; i++)
	{
		v=kth(i);
		if(vis[v]) continue;
		vis[v]=cnt(v); sum+=vis[v];
		if(abs((n-sum)/(n-i)-n/3) >=1e-6) break;
		if(vis[v]>n/3)
		{
			say_answer(v); return;
		}
	}
	say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11 (could be triggered by violating memory limits)
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 384 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -