답안 #315040

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
315040 2020-10-22T01:09:23 Z daniel920712 CONSUL (info1cup19_consul) C++14
12.8 / 100
195 ms 256 KB
#include "grader.h"
#include <map>
using namespace std;
map < int , int > all;
void solve(int n)
{
    all.clear();
    int i,t,big=0,xx=n,x;
    for(i=1;i<=n/3*2+10;i++)
    {
        t=kth(i);
        all[t]++;
        if(all[t]==10)
        {
            x=cnt(t);
            big=max(big,x);
            xx-=(x-10);
        }
        if(big>n/3)
        {
            say_answer(t);
            return;
        }
        
    }
    say_answer(-1);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 7 ms 256 KB Wrong answer
# 결과 실행 시간 메모리 Grader output
1 Partially correct 44 ms 256 KB Output is partially correct
2 Partially correct 30 ms 256 KB Output is partially correct
# 결과 실행 시간 메모리 Grader output
1 Partially correct 195 ms 256 KB Output is partially correct
2 Halted 0 ms 0 KB -