Submission #288727

#TimeUsernameProblemLanguageResultExecution timeMemory
288727eagle30Colouring a rectangle (eJOI19_colouring)C++14
0 / 100
722 ms6540 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]; int hi=n+m-1; int tot=0; for(int 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...