Submission #288730

#TimeUsernameProblemLanguageResultExecution timeMemory
288730eagle30Colouring a rectangle (eJOI19_colouring)C++14
10 / 100
726 ms7856 KiB
#include<bits/stdc++.h> using namespace std; long long arr1[1000000], arr2[1000000], arr[101][101]; int main(){ long long n, m; cin>>n>>m; for(long long i=0; i<n+m-1; i++) cin>>arr1[i]; for(long long i=0; i<n+m-1; i++) cin>>arr2[i]; long long hi=n+m-1; long long tot=0; for(long long i=0; i<hi; i++){ tot+=min(arr1[i], arr2[hi-i-1]); } cout<<tot; return 0; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...