제출 #1368353

#제출 시각아이디문제언어결과실행 시간메모리
1368353he71xHack (APIO25_hack)C++20
8 / 100
79 ms408 KiB
#include "hack.h"
#include <vector>
using namespace std;

int hack(){
    int result;
    for (int k = 1; k <= 500000; k++) {
        result = collisions({1, 1+k});
        if (result > 0) {
            return k;
            break;
        }
    }
}

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

hack.cpp: In function 'int hack()':
hack.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
   14 | }
      | ^
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…