| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1367117 | peem | Hack (APIO25_hack) | C++20 | 54 ms | 436 KiB |
#include "hack.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int hack(){
const ll mxval=1e6;
for(ll i=2;i<mxval;i+=3) {
ll x=i*(i+1)*(i+2);
ll num=collisions({x+1,1});
if(num==1) {
for(ll j=i;j<i+3;++j) {
if(collisions({j+1,1})==1) return j;
}
}
}
return 1;
}| # | 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... | ||||
