#include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
int team1 = -11;
int team2 = -11;
int score1 = 0;
int score2 = 0;
for(int i=0; i<n; i++){
int t, a, b;
cin >> t >> a >> b;
if(a<=4){
if(t<=team1+10){
score1+=150;
}
else{
score1+=100;
}
team1 = t;
}
else{
if(t<=team2+10){
score2+=150;
}
else{
score2+=100;
}
team2 = t;
}
}
cout << score1 << ' ' << score2 << '\n';
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
324 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Incorrect |
1 ms |
324 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |