Submission #260130

# Submission time Handle Problem Language Result Execution time Memory
260130 2020-08-09T11:12:49 Z tomsyd Colouring a rectangle (eJOI19_colouring) C++17
0 / 100
133 ms 8952 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;
	int sum1 = 0, sum2 = 0;
	for (int i=0; i<m+n-1; ++i){
		int a;
		cin >> a;
		sum1 += a;
	}
	for (int i=0; i<m+n-1; ++i){
		int a;
		cin >> a;
		sum2 += a;
	}
	cout << min(sum1,sum2);
	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 63 ms 4224 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 133 ms 8952 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 -