/*
███████╗ ██████╗ ███╗ ███╗ ██╗ ██╗ ███████╗
██╔════╝ ██╔════╝ ████╗ ████║ ██║ ██║ ██╔════╝
█████╗ ╚█████╗ ██╔████╔██║ ██║ ██║ █████╗
██╔══╝ ╚═══██╗ ██║╚██╔╝██║ ██║ ██║ ██╔══╝
███████╗ ██████╔╝ ██║ ╚═╝ ██║ ██║ ███████╗ ███████╗
╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚══════╝
Made by eSmile_YT
https://youtube.com/@eSmile_
https://youtube.com/@speedrun_edits
https://discord.gg/8pvV4nW5hv
*/
#include<bits/stdc++.h>
using namespace std;
#define ll long
#define pb push_back
int main(){
ll n, a=0, b=0, t1=0, t2=0, player1, player1_past, player2, x=0;
cin>>n;
while(n--){
cin>>t2>>player1>>player2;
if(1<=player1&&4>=player1){
a+=100;
if(x>0){
if(t2-t1<=10&&player1_past==player1){
a+=50;
}
}
x++;
}
else if(5<=player1&&8>=player1){
b+=100;
if(x>=1){
if(t2-t1<=10&&player1_past==player1){
b+=50;
}
}
x++;
}
t1=t2;
player1_past=player1;
}
cout<<a<<" "<<b;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |