# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
492293 |
2021-12-06T13:06:12 Z |
asdfghjkl |
Poi (IOI09_poi) |
C++17 |
|
525 ms |
32084 KB |
#include<iostream>
#include<locale>
#include <iomanip>
#include<fstream>
#include<cmath>
#include<string>
using namespace std;
int main()
{
int n, t, p, temp=0;
cin>>n>>t>>p;
int TT[n][t], Kk[t], Z[n+1], L[n];
for (int i=1; i<=t+1; i++)
{
Kk[i]=0;
L[i]=0;
Z[i]=0;
}
for (int i=1; i<=n; i++)
{
for (int o=1; o<=t; o++)
{
cin>>TT[i][o];
if (TT[i][o]==0) Kk[o]++;
}
}
for (int i=1; i<=n; i++)
{
for (int o=1; o<=t; o++)
{
if (TT[i][o]==1) {Z[i]+=Kk[o]; L[i]++;};
}
}
cout<<Z[p]<<" ";
temp=Z[p];
for (int i=0; i<n; i++)
{
if (Z[i]<Z[i+1]) swap (Z[i],Z[i+1]);
else if (Z[i]==Z[i+1])
{
if (L[i] < L[i+1]) {
swap (Z[i],Z[i+1]) ;
};
}
}
for (int i=1; i<=n-1; i++)
{
if (Z[i]==temp) {cout<<i<<endl;break;};
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
2 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
3 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
4 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
5 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
6 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
7 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
8 |
Runtime error |
1 ms |
332 KB |
Execution killed with signal 11 |
9 |
Runtime error |
3 ms |
460 KB |
Execution killed with signal 11 |
10 |
Runtime error |
5 ms |
528 KB |
Execution killed with signal 11 |
11 |
Runtime error |
17 ms |
1268 KB |
Execution killed with signal 11 |
12 |
Runtime error |
31 ms |
1956 KB |
Execution killed with signal 11 |
13 |
Runtime error |
79 ms |
5060 KB |
Execution killed with signal 11 |
14 |
Runtime error |
111 ms |
7056 KB |
Execution killed with signal 11 |
15 |
Runtime error |
204 ms |
12308 KB |
Execution killed with signal 11 |
16 |
Runtime error |
215 ms |
13292 KB |
Execution killed with signal 11 |
17 |
Runtime error |
317 ms |
19404 KB |
Execution killed with signal 11 |
18 |
Runtime error |
362 ms |
21952 KB |
Execution killed with signal 11 |
19 |
Runtime error |
470 ms |
28968 KB |
Execution killed with signal 11 |
20 |
Runtime error |
525 ms |
32084 KB |
Execution killed with signal 11 |