# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
600305 |
2022-07-20T17:29:08 Z |
Codula |
Poi (IOI09_poi) |
C++17 |
|
245 ms |
39516 KB |
//IOI 2023 I am coming.
#include "bits/stdc++.h"
using namespace std;
#define fast ios_base::sync_with_stdio(false);cin.tie(nullptr)
#define int int64_t
#define pb push_back
int32_t main(){
fast;
int n,t,p;
cin>>n>>t>>p;
vector<vector<int>>a(n,vector<int>(t,0));
vector<int>b(t);
for(int i=0;i<n;++i){
for(int j=0;j<t;++j){
cin>>a[i][j];
b[j]+=a[i][j];
}
}
vector<pair<int,int>>scores(n);
for(int i=0;i<n;++i){
for(int j=0;j<t;++j){
if(a[i][j]!=0){
scores[i].first+=(n-b[j]);
scores[i].second=i;
}
}
}
p--;
sort(scores.begin(),scores.end());
for(int i=0;i<n;++i){
if(scores[i].second==p){
cout<<scores[i].first<<" "<<i+1<<"\n";
break;
}
}
//~ cout<<"\n";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
316 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
7 |
Correct |
1 ms |
340 KB |
Output is correct |
8 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
456 KB |
Output isn't correct |
10 |
Incorrect |
2 ms |
596 KB |
Output isn't correct |
11 |
Incorrect |
9 ms |
1492 KB |
Output isn't correct |
12 |
Incorrect |
13 ms |
2260 KB |
Output isn't correct |
13 |
Incorrect |
42 ms |
6164 KB |
Output isn't correct |
14 |
Incorrect |
53 ms |
8648 KB |
Output isn't correct |
15 |
Incorrect |
84 ms |
15044 KB |
Output isn't correct |
16 |
Incorrect |
90 ms |
16288 KB |
Output isn't correct |
17 |
Incorrect |
144 ms |
23752 KB |
Output isn't correct |
18 |
Incorrect |
168 ms |
26916 KB |
Output isn't correct |
19 |
Incorrect |
245 ms |
35596 KB |
Output isn't correct |
20 |
Incorrect |
229 ms |
39516 KB |
Output isn't correct |