Submission #315087

# Submission time Handle Problem Language Result Execution time Memory
315087 2020-10-22T02:21:57 Z yjojdkgk5bp CONSUL (info1cup19_consul) C++14
0 / 100
6 ms 376 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+3; 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 6 ms 376 KB Wrong answer
2 Halted 0 ms 0 KB -