제출 #1205651

#제출 시각아이디문제언어결과실행 시간메모리
1205651bongoboltoHack (APIO25_hack)C++20
0 / 100
18 ms320 KiB
#include "hack.h"
// #include <iostream>
#include <vector>
#include <map>
using namespace std;


int hack()
{
    int n = 1;
    for (int i = 0; i < 500000; ++i)
    {
        // vector<long long> vec = {n};
        if(collisions(vector<long long> {n}) != 0LL)    
        {
            // cout<<n<<endl;
            return n;
        }
        n++;
    }
}

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

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