답안 #645345

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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);
      |             ^~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 292 KB Wrong answer
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 208 KB Wrong answer
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 208 KB Wrong answer
2 Halted 0 ms 0 KB -