Submission #315010

# Submission time Handle Problem Language Result Execution time Memory
315010 2020-10-22T00:21:00 Z daniel920712 CONSUL (info1cup19_consul) C++14
0 / 100
16 ms 376 KB
#include "grader.h"
#include <map>
using namespace std;
map < int , int > all;
void solve(int n)
{
    int i,t;
    for(i=1;i<=n;i++)
    {
        t=kth(i);
        all[t]++;
        if(all[t]>n/3) say_answer(t);
    }
    say_answer(-1);

}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Multiple answers provided for the same testcase!
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 256 KB Multiple answers provided for the same testcase!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 16 ms 376 KB Multiple answers provided for the same testcase!
2 Halted 0 ms 0 KB -