# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
635844 | S2speed | Liteh and Newfiteh (INOI20_litehfiteh) | C++17 | 244 ms | 315136 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
#pragma GCC optimize ("Ofast")
#define all(x) x.begin() , x.end()
#define sze(x) (ll)(x.size())
typedef long long ll;
const ll maxn = 1e5 + 17 , inf = 2e6;
ll a[maxn];
ll pd[20][maxn][20] , dp[maxn];
int main(){
ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
for(ll i = 0 ; i < maxn ; i++){
for(ll j = 0 ; j < 20 ; j++){
for(ll k = 0 ; k < 20 ; k++){
pd[j][i][k] = inf;
}
}
dp[i] = inf;
}
ll n;
cin>>n;
for(ll i = 0 ; i < n ; i++){
cin>>a[i];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |