Submission #288730

# Submission time Handle Problem Language Result Execution time Memory
288730 2020-09-01T19:36:43 Z eagle30 Colouring a rectangle (eJOI19_colouring) C++14
10 / 100
726 ms 7856 KB
#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 time Memory Grader output
1 Incorrect 0 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 333 ms 3500 KB Output is correct
2 Correct 343 ms 7440 KB Output is correct
3 Correct 338 ms 7440 KB Output is correct
4 Correct 366 ms 7544 KB Output is correct
5 Correct 365 ms 7856 KB Output is correct
6 Correct 298 ms 6904 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 726 ms 6648 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -