# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
300257 |
2020-09-17T03:19:04 Z |
fpc_coder |
Poi (IOI09_poi) |
C++17 |
|
1145 ms |
24048 KB |
#include <bits/stdc++.h>
using namespace std;
const int N = 2005;
int status[N][N], task_score[N];
pair<int, int> contestant[N];
int main() {
int n, t, p;
cin >> n >> t >> p;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= t; j++) cin >> status[i][j];
}
for (int j = 1; j <= t; j++) {
for (int i = 1; i <= n; i++) task_score[j] += (status[i][j] == 0);
}
for (int i = 1; i <= n; i++) {
contestant[i].first = 0;
contestant[i].second = i;
for (int j = 1; j <= t; j++) {
if (status[i][j]) contestant[i].first += task_score[j];
}
}
sort(contestant + 1, contestant + n + 1);
for (int i = 1; i <= n; i++) {
if (contestant[i].second == p) {
cout << contestant[i].first << ' ' << contestant[i].second << '\n';
return 0;
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
384 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
384 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
384 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
384 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
384 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
512 KB |
Output isn't correct |
7 |
Incorrect |
2 ms |
640 KB |
Output isn't correct |
8 |
Incorrect |
2 ms |
640 KB |
Output isn't correct |
9 |
Incorrect |
5 ms |
768 KB |
Output isn't correct |
10 |
Incorrect |
9 ms |
1280 KB |
Output isn't correct |
11 |
Incorrect |
38 ms |
2304 KB |
Output isn't correct |
12 |
Incorrect |
59 ms |
3576 KB |
Output isn't correct |
13 |
Incorrect |
169 ms |
6648 KB |
Output isn't correct |
14 |
Incorrect |
241 ms |
9336 KB |
Output isn't correct |
15 |
Incorrect |
423 ms |
12664 KB |
Output isn't correct |
16 |
Incorrect |
452 ms |
13688 KB |
Output isn't correct |
17 |
Incorrect |
681 ms |
16888 KB |
Output isn't correct |
18 |
Incorrect |
761 ms |
19156 KB |
Output isn't correct |
19 |
Incorrect |
1032 ms |
23160 KB |
Output isn't correct |
20 |
Incorrect |
1145 ms |
24048 KB |
Output isn't correct |