Submission #1368457

#TimeUsernameProblemLanguageResultExecution timeMemory
1368457neelamneelam19Hack (APIO25_hack)C++20
8 / 100
78 ms428 KiB
#include "hack.h"
#include <vector>

int hack(){
    for (long long i=2; i<=1000000; i++){
        long long a = collisions({1,i});
        if (a==1){
            return i-1;
        }
    }
}

Compilation message (stderr)

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