| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 717729 | lukatasev | Poi (IOI09_poi) | C++14 | 529 ms | 16236 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <set>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
int main() {
    int n,t,p;
    int num;
    cin>>n>>t>>p;
    int taskPoint[2001] = {0};
    map<int, vector<int> > student;
    for(int i=1; i<=n; i++) {
        vector<int> temp;
        for(int j=1; j<=t; j++) {
            cin>>num;
            temp.push_back(num);
            if(num == 0) {
                taskPoint[j] += 1;
            }
        }
        student.insert({i, temp});
    }
    set<pair<int, int> > studentPoints;
    int tempNum;
    for(auto x: student) {
        tempNum = 0;
        for(auto y: x.second) {
            tempNum += taskPoint[y];
        }
        studentPoints.insert({tempNum, x.first});
    }
    int mesto=0;
    for(auto x: studentPoints) {
        mesto++;
        if(x.second == p) {
            cout<<mesto<<" "<<x.first<<endl;
        }
    }
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
