Submission #1239840

#TimeUsernameProblemLanguageResultExecution timeMemory
1239840lunarechoHack (APIO25_hack)C++20
8 / 100
111 ms412 KiB
#include "hack.h"
#include <bits/stdc++.h>
using namespace std;

int hack()
{
    int n = 0;
    while(++n)
    {
        if(collisions({1,n + 1}))
            return n;
    }
}

Compilation message (stderr)

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