Submission #1353476

#TimeUsernameProblemLanguageResultExecution timeMemory
1353476isctHack (APIO25_hack)C++20
8 / 100
79 ms428 KiB
#include "hack.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;

int hack()
{
    for (long long i = 3; i <= 1e9; i++)
    {
        long long response = collisions({1, i});
        if (response == 1)
        {
            return (i - 1);
        }
    }
}

Compilation message (stderr)

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