#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 <= 3) L += 100;
else R += 100;
if(last[a] != -1 and t - last[a] <= 10){
if(a <= 3) L += 50;
else R += 50;
}
last[a]=t;
}
cout<<L<<" "<<R<<"\n";
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |