Submission #583785

#TimeUsernameProblemLanguageResultExecution timeMemory
583785Hussein3602Ljeto (COCI21_ljeto)C++14
50 / 50
1 ms300 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...