Submission #1312735

#TimeUsernameProblemLanguageResultExecution timeMemory
1312735eri16Hack (APIO25_hack)C++20
8 / 100
132 ms416 KiB
#include <bits/stdc++.h>
#include "hack.h"

using namespace std;

using ll = long long;

int hack(){
    vector <ll> tm;
    
    for (int i=3; i<=500001; i++){
        tm.clear();
        tm.push_back(i);
        tm.push_back(1);
        
        ll found = collisions(tm);
        
        if (found == 1){
            return i - 1;
        }
    }
}

Compilation message (stderr)

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