Submission #693116

# Submission time Handle Problem Language Result Execution time Memory
693116 2023-02-02T11:45:23 Z auslander CONSUL (info1cup19_consul) C++17
0 / 100
30 ms 296 KB
#include "grader.h"
#include <map>
using namespace std;

map<int, int>mp;

void solve(int n)
{
	int i;
	int k = 60;
	if (n <= 50)
		k = 50;
	for (i = 1; i <= k; i++)
	{
		int k = kth(i);
		if (mp[k] == 0)
			mp[k] = cnt(k);
		if (mp[k] > n / 3)
		{
			say_answer(k);
			return;
		}
	}
	say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 208 KB Wrong query format
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 22 ms 296 KB Output is partially correct
2 Incorrect 6 ms 208 KB Wrong answer
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 22 ms 280 KB Output is partially correct
2 Partially correct 30 ms 272 KB Output is partially correct
3 Incorrect 1 ms 272 KB Wrong answer
4 Halted 0 ms 0 KB -