답안 #730986

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
730986 2023-04-26T17:34:54 Z murad_2005 CONSUL (info1cup19_consul) C++14
0.116806 / 100
61 ms 228 KB
#include "grader.h"
#include <bits/stdc++.h>

using namespace std;

void solve(int n)
{
    for(int i = 0; i < 60; ++i){
        int x = rand() % n + 1;
        int val = kth(x);
        if(cnt(val) > (n / 3)){
            say_answer(val);
            return;
        }
    }
    say_answer(-1);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 16 ms 208 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 34 ms 208 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Partially correct 31 ms 208 KB Output is partially correct
2 Partially correct 23 ms 208 KB Output is partially correct
3 Correct 4 ms 208 KB Output is correct
4 Correct 5 ms 228 KB Output is correct
5 Partially correct 30 ms 208 KB Output is partially correct
6 Partially correct 53 ms 220 KB Output is partially correct
7 Partially correct 48 ms 208 KB Output is partially correct
8 Partially correct 42 ms 208 KB Output is partially correct
9 Partially correct 38 ms 208 KB Output is partially correct
10 Partially correct 45 ms 208 KB Output is partially correct
11 Partially correct 61 ms 208 KB Output is partially correct
12 Partially correct 37 ms 208 KB Output is partially correct
13 Partially correct 35 ms 208 KB Output is partially correct
14 Partially correct 51 ms 208 KB Output is partially correct