Submission #1367117

#TimeUsernameProblemLanguageResultExecution timeMemory
1367117peemHack (APIO25_hack)C++20
25 / 100
54 ms436 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 timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...