Submission #777155

# Submission time Handle Problem Language Result Execution time Memory
777155 2023-07-08T18:05:58 Z LeaRouse CONSUL (info1cup19_consul) C++17
0 / 100
23 ms 292 KB
#include "grader.h"
#include    <map>
#define ll long long
using namespace std;
map<ll,int>m;
void solve(int n){
    for(int i=1;i<=n;i++){
        int a=kth(i);
        m[a]++;
    }
    for(auto it:m){
        if(it.second>(n/3)){
            say_answer(it.first);
            return;
        }
    }
    say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 208 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 292 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 292 KB Wrong answer
2 Halted 0 ms 0 KB -