# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
904332 | Jawad_Akbar_JJ | Ljeto (COCI21_ljeto) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;
const int N = 1e6 +10;
int a[N];
int b[N];
int tm[N];
int main() {
int n;
cin>>n;
int t[3] = {0};
tm[0] = -1e8;
for (int i=1;i<=n;i++){
cin>>tm[i]>>a[i]>>b[i];
if (a[i]<5)
d[i] = 1;
else
d[i] = 2;
}
for (int i=1;i<=n;i++){
t[d[i]] += 100;
if (a[i]==a[i-1] and tm[i] - tm[i-1] <= 10)
t[d[i]] += 50;
}
cout<<t[1]<<" "<<t[2]<<endl;
}