Submission #1205126

#TimeUsernameProblemLanguageResultExecution timeMemory
1205126tamzidHack (APIO25_hack)C++20
8 / 100
115 ms416 KiB
#include "hack.h"
#include <vector>
#include <map>
using ll = long long;

int hack(){
    // std::vector<long long> x = {3333,2565454,21223,898997,9999,4,8,100,2340040,222,44,2222211};
    // long long a = collisions(x);


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

Compilation message (stderr)

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