Submission #645349

# Submission time Handle Problem Language Result Execution time Memory
645349 2022-09-26T20:34:43 Z notme CONSUL (info1cup19_consul) C++14
0 / 100
1 ms 208 KB
#include<bits/stdc++.h>
#define endl '\n'
#include "grader.h"
using namespace std;


void solve(int N)
{
    for (int i = 1; i <= N; ++ i)
    {
        long long num = kth(i);
        long long times = cnt(num);
        if(num > N/3)
        {
            say_answer(num);
            return;
        }
    }
    say_answer(-1);
}

Compilation message

consul.cpp: In function 'void solve(int)':
consul.cpp:12:19: warning: unused variable 'times' [-Wunused-variable]
   12 |         long long times = cnt(num);
      |                   ^~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong answer
2 Halted 0 ms 0 KB -
# 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 0 ms 208 KB Wrong answer
2 Halted 0 ms 0 KB -