Submission #1368353

#TimeUsernameProblemLanguageResultExecution timeMemory
1368353he71xHack (APIO25_hack)C++20
8 / 100
79 ms408 KiB
#include "hack.h"
#include <vector>
using namespace std;

int hack(){
    int result;
    for (int k = 1; k <= 500000; k++) {
        result = collisions({1, 1+k});
        if (result > 0) {
            return k;
            break;
        }
    }
}

Compilation message (stderr)

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