# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
956609 |
2024-04-02T08:26:31 Z |
DeltaStruct |
Poi (IOI09_poi) |
C++17 |
|
474 ms |
16148 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),j;k < m;++k) (cin>>j),B[k]-=j;
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;
cout << r/n << ' ' << upper_bound(C.begin(),C.end(),r)-C.begin() << endl;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 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 |
2 ms |
348 KB |
Output isn't correct |
9 |
Incorrect |
2 ms |
348 KB |
Output isn't correct |
10 |
Incorrect |
4 ms |
344 KB |
Output isn't correct |
11 |
Incorrect |
15 ms |
856 KB |
Output isn't correct |
12 |
Incorrect |
28 ms |
1116 KB |
Output isn't correct |
13 |
Incorrect |
69 ms |
2648 KB |
Output isn't correct |
14 |
Incorrect |
99 ms |
3776 KB |
Output isn't correct |
15 |
Incorrect |
172 ms |
6332 KB |
Output isn't correct |
16 |
Incorrect |
195 ms |
6812 KB |
Output isn't correct |
17 |
Incorrect |
275 ms |
9964 KB |
Output isn't correct |
18 |
Incorrect |
327 ms |
11096 KB |
Output isn't correct |
19 |
Incorrect |
418 ms |
14596 KB |
Output isn't correct |
20 |
Incorrect |
474 ms |
16148 KB |
Output isn't correct |