# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
931380 |
2024-02-21T17:14:50 Z |
thisisadarsh |
Poi (IOI09_poi) |
C++14 |
|
482 ms |
23808 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int N, T, P;
cin >> N >> T >> P;
vector<vector<int>> a(N, vector<int> (T,0));
vector<int>score(T,0);
for(int i = 0; i < N; i++){
for(int j = 0; j < T; j++){
cin >> a[i][j];
}
}
for(int i = 0; i < T; i++){
for(int j = 0; j < N; j++){
if(a[j][i] == 0){
score[i]++;
}
}
}
vector<pair<int, int>>player_score(N);
for(int i = 0; i < N; i++){
player_score[i].second = i+1;
}
for(int i = 0; i < N; i++){
for(int j = 0; j < T; j++){
if(a[i][j] != 0){
player_score[i].first += score[j];
}
}
}
sort(player_score.begin(), player_score.end());
for(int i = 0; i < N; i++){
if(player_score[i].second == P){
cout << player_score[i].first << ' ' << i + 1 << '\n';
return 0;
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
444 KB |
Output isn't correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
9 |
Incorrect |
2 ms |
348 KB |
Output isn't correct |
10 |
Incorrect |
4 ms |
600 KB |
Output isn't correct |
11 |
Incorrect |
15 ms |
1116 KB |
Output isn't correct |
12 |
Incorrect |
24 ms |
1604 KB |
Output isn't correct |
13 |
Incorrect |
71 ms |
3896 KB |
Output isn't correct |
14 |
Incorrect |
105 ms |
5564 KB |
Output isn't correct |
15 |
Incorrect |
179 ms |
9044 KB |
Output isn't correct |
16 |
Incorrect |
198 ms |
9812 KB |
Output isn't correct |
17 |
Incorrect |
293 ms |
14588 KB |
Output isn't correct |
18 |
Incorrect |
322 ms |
16380 KB |
Output isn't correct |
19 |
Incorrect |
444 ms |
21624 KB |
Output isn't correct |
20 |
Incorrect |
482 ms |
23808 KB |
Output isn't correct |