이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int n, last[10],L,R;
int main(){
ios::sync_with_stdio(false); cin.tie(0);
cin>>n;
memset(last, -1, sizeof last);
for(int i = 1, t,a,b; i <= n; i++){
cin>>t>>a>>b;
if(a <= 4) L += 100;
else R += 100;
if(last[a] != -1 and t - last[a] <= 10){
if(a <= 4) L += 50;
else R += 50;
}
last[a]=t;
}
cout<<L<<" "<<R<<"\n";
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |