Submission #1061045

#TimeUsernameProblemLanguageResultExecution timeMemory
1061045Sir_Ahmed_ImranWiring (IOI17_wiring)C++17
13 / 100
20 ms2004 KiB
///~~~LOTA~~~/// #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define append push_back #define add insert #define nl '\n' #define ff first #define ss second #define pii pair<int,int> #define pll pair<ll,ll> #define all(x) (x).begin(),(x).end() #define L0TA ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) #define terminator main #define MAXN 201 ll dp[MAXN][MAXN]; ll min_total_length(vector<int> r,vector<int> b){ ll n,m,o,p,q; n=r.size(); m=b.size(); p=n-1; q=o=0; while(p>=0 && q<m){ o+=b[q]-r[p]; q++;p--; } while(p>=0){ o+=b[0]-r[p]; p--; } while(q<m){ o+=b[q]-r[n-1]; q++; } return o; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...