Submission #862334

# Submission time Handle Problem Language Result Execution time Memory
862334 2023-10-18T04:51:02 Z maks007 Olympiads (BOI19_olympiads) C++14
0 / 100
18 ms 1492 KB
#include "bits/stdc++.h"

using namespace std;

signed main () {
	int n, m, k;
	cin >> n >> m >> k;
	int a[n][m];
	for(int i = 0; i < n; i ++) {
		for(int j = 0; j < m; j ++) {
			cin >> a[i][j];
		}
	}
	vector <int> v;
	for(int i = 0; i < n; i ++) {
		for(int j = 0; j < n; j ++) {
			v.push_back(a[i][0] + a[j][1]);
		}
	}
	sort(v.rbegin(), v.rend());
	cout << v[k-1];
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 1492 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 1492 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 1492 KB Output isn't correct
2 Halted 0 ms 0 KB -