# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
779433 | ashcomp | Liteh and Newfiteh (INOI20_litehfiteh) | C++17 | 245 ms | 366272 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;
#define F first
#define S second
#define pii pair<int,int>
#define pll pair<ll,ll>
#define wall cerr<<"-------------------------------------"<<endl
typedef long long ll;
const ll INF = 1e17;
const ll maxn = 1e5 + 10;
ll n , a[maxn] , mn[maxn] , res[maxn][22];
vector<pll> seg[maxn];
ll dp[22][maxn][22];
int main()
{
ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL);
cin>>n;
for(int i=1; i<=n; i++){
cin>>a[i];
}
for(int i=0; i<20; i++){
for(int l=1; l<=n; l++){
for(int k=0; k<20; k++){
dp[i][l][k] = INF;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |