Submission #645345

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

void speed()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
}

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

Compilation message

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