Submission #753762

#TimeUsernameProblemLanguageResultExecution timeMemory
753762vjudge1Poi (IOI09_poi)C++98
0 / 100
534 ms4716 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n, t, p; cin >> n >> t >> p; p--; vector <pair <int, int>> rank(t+2); for(int i=0; i<n; i++){ for (int i = 0; i < t; ++i){ int x; cin >> x; rank[i].first+=x; rank[i].second=i; } } sort(rank.rbegin(), rank.rend()); for (int i = 0; i < t; ++i){ if(rank[i].second==p){ cout << rank[i].first << " " << i+1 << endl; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...