# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
986396 | Pyqe | Wiring (IOI17_wiring) | C++17 | 43 ms | 11612 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 "wiring.h"
#include <bits/stdc++.h>
using namespace std;
long long n,nn[2],ps[200069],dp[2][2][100069],inf=1e18;
pair<long long,long long> a[200069];
#define mp make_pair
#define fr first
#define sc second
long long min_total_length(vector<int> aa,vector<int> aa2)
{
long long i,j,ii,k,sz=aa.size();
n=sz+aa2.size();
for(i=1;i<=n;i++)
{
if(i<=sz)
{
a[i]={aa[i-1],0};
}
else
{
a[i]={aa2[i-sz-1],1};
}
}
sort(a+1,a+n+1);
dp[0][0][0]=inf;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |