이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define int int64_t
#define ll int128_t
using namespace std;
int32_t main()
{
int T,sayp=0,sayg=0;
cin>>T;
int p=-10,g=-10;
while(T--){
int t,r,s;
cin>>t>>r>>s;
if(r<5){
sayp+=100;
if(t-p<=10){
sayp+=50;
}
p=t;
}
else{
sayg+=100;
if(t-g<=10){
sayg+=50;
}
g=t;
}
}
cout<<sayp<<" "<<sayg;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |