| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1367927 | jackhui100101 | Hack (APIO25_hack) | C++20 | 50 ms | 428 KiB |
#include "hack.h"
#include <bits/stdc++.h>
using namespace std;
int hack(){
int N = 1e6;
for (int i = N; i >= 2; i -= 2){
int r = collisions({1, i, i + 1});
if (r){
int r2 = collisions({1, i});
if (r2) i--;
for (int j = 2; j <= i; j++){
if (i % j == 0){
int r3 = collisions({1, j + 1});
if (r3) return j;
}
}
}
}
}Compilation message (stderr)
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
