Submission #260141

# Submission time Handle Problem Language Result Execution time Memory
260141 2020-08-09T11:32:25 Z tomsyd Colouring a rectangle (eJOI19_colouring) C++17
0 / 100
140 ms 6792 KB
#include <bits/stdc++.h>
#define int long long
using namespace std;

int32_t main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	int m,n;
	cin >> m >> n;
	vector<int> v1(m+n-1), v2(m+n-1);
	for (int i=0; i<m+n-1; ++i){
		cin >> v1[i];
	}
	for (int i=0; i<m+n-1; ++i){
		cin >> v2[i];
	}
	reverse(v2.begin(),v2.end());
	int sum = 0;
	for (int i=0; i<(n-1)/2; ++i){
		sum += min(v1[i],v2[i]);
	}
	cout << sum;
	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 Incorrect 64 ms 3528 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 140 ms 6792 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 -