This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std ;
typedef long long ll ;
int main(){
vector <ll> t(100,1e9) ;
ll n , team1=0 , team2=0 ; cin >> n ;
for(ll i=0;i<n;i++)
{
ll x , y , z ;
cin >> z >> x >> y ;
if(x<=4)
{
team1+=100;
if(abs(z-t[x])<=10)team1+=50;
}
else
{
team2+=100;
if(abs(z-t[x])<=10)team2+=50;
}
t[x] = z ;
}
cout<<team1<<" "<<team2;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |