# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
956618 |
2024-04-02T08:35:34 Z |
DeltaStruct |
Poi (IOI09_poi) |
C++17 |
|
469 ms |
16152 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,m,q; cin >> n >> m >> q; vector A(n,vector<int>(m)); vector<int> B(m,n);
for (int i(0);i < n;++i) for (int k(0);k < m;++k) (cin>>A[i][k]),B[k]-=A[i][k];
vector<int> C(n); iota(C.rbegin(),C.rend(),0); for (int i(0);i < n;++i) for (int k(0);k < m;++k) C[i] += A[i][k]*B[k]*n;
sort(C.begin(),C.end(),greater<int>()); int r(n-q); for (int k(0);k < m;++k) r += A[q-1][k]*B[k]*n*m+A[q-1][k]*n;
cout << r/n/m << ' ' << upper_bound(C.begin(),C.end(),r,greater<int>())-C.begin() << endl;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
348 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 |
348 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
9 |
Incorrect |
2 ms |
344 KB |
Output isn't correct |
10 |
Incorrect |
4 ms |
348 KB |
Output isn't correct |
11 |
Incorrect |
14 ms |
860 KB |
Output isn't correct |
12 |
Incorrect |
24 ms |
1116 KB |
Output isn't correct |
13 |
Incorrect |
71 ms |
2652 KB |
Output isn't correct |
14 |
Incorrect |
99 ms |
3784 KB |
Output isn't correct |
15 |
Incorrect |
193 ms |
6480 KB |
Output isn't correct |
16 |
Incorrect |
195 ms |
6748 KB |
Output isn't correct |
17 |
Incorrect |
279 ms |
9868 KB |
Output isn't correct |
18 |
Incorrect |
318 ms |
11124 KB |
Output isn't correct |
19 |
Incorrect |
428 ms |
14584 KB |
Output isn't correct |
20 |
Incorrect |
469 ms |
16152 KB |
Output isn't correct |