Submission #315086

# Submission time Handle Problem Language Result Execution time Memory
315086 2020-10-22T02:20:51 Z yjojdkgk5bp CONSUL (info1cup19_consul) C++14
0 / 100
8 ms 256 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
void solve(int n)
{
	int v;
	map<int,int> can;
	for(int i=1; i<=n/3+2; i++)
	{
		v=kth(i);
		can[v]++;
		if(can[v]>n/3)
		{
			say_answer(v); return;
		}
	}
	say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong answer
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 256 KB Wrong answer
2 Halted 0 ms 0 KB -