Submission #260147

# Submission time Handle Problem Language Result Execution time Memory
260147 2020-08-09T11:37:32 Z tomsyd Colouring a rectangle (eJOI19_colouring) C++17
0 / 100
136 ms 6776 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 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 64 ms 3456 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 136 ms 6776 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -