| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1013026 | vjudge1 | ACM (COCI19_acm) | C++17 | 6 ms | 604 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int const N=2e5+5;
int const mod=1e9+7;
string ourteam="NijeZivotJedanACM";
vector<pair<pair<int,int>,string>> teams;
int main(){
int n,m;
cin>>n>>m;
for (int i = 0; i <=n; ++i)
{
string t;
cin>>t;
int s=0;
int pen=0;
for (int j = 0; j < m; ++j)
{
string p;
cin>>p;
if(p[0]=='-')
continue;
s++;
pen+=(p[1]-'1')*20*60;
pen+=(p[4]-'0')*60*60;
pen+=(p[6]-'0')*10*60;
pen+=(p[7]-'0')*60;
pen+=(p[9]-'0')*10;
pen+=(p[10]-'0');
}
if(i<n && t==ourteam)
continue;
// cout<<t<<' '<<s<<' '<<pen<<endl;
teams.push_back({{-s,pen},t});
}
sort(teams.begin(), teams.end());
for (int i = 0; i < n; ++i)
if(teams[i].second==ourteam)
cout<<i+1<<endl;
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
