Submission #583785

# Submission time Handle Problem Language Result Execution time Memory
583785 2022-06-26T08:03:02 Z Hussein3602 Ljeto (COCI21_ljeto) C++14
50 / 50
1 ms 300 KB
#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
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 300 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 300 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct