제출 #1345217

#제출 시각아이디문제언어결과실행 시간메모리
1345217ahmetlbktd4Hack (APIO25_hack)C++20
8 / 100
133 ms428 KiB
#include "hack.h"
#include "bits/stdc++.h"
#define ll long long
using namespace std;

const int N = 5e5;

int hack(){
  for (int n = 2;n <= N;n++){
    vector <ll> x = {n,2*n};
    ll h = collisions(x);
    if (h)
    return n;
  }
}

컴파일 시 표준 에러 (stderr) 메시지

hack.cpp: In function 'int hack()':
hack.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
   15 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...