제출 #1238188

#제출 시각아이디문제언어결과실행 시간메모리
1238188wetspongeLjeto (COCI21_ljeto)C++20
50 / 50
0 ms328 KiB
#include <bits/stdc++.h>
#define int long long
#define endl "\n"
#define mod 1000000007
using namespace std;
int team1,team2;
int arr[9];
signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int n;
    cin>>n;
    for(int i=0;i<n;i++){
        int tm,a,b;
        cin>>tm>>a>>b;
        if(a<=4){
            team1+=100;
            if(tm-arr[a]<=10&&arr[a]!=0) team1+=50;
        }
        else{
            team2+=100;
            if(tm-arr[a]<=10&&arr[a]!=0) team2+=50;    
        }
        arr[a]=tm;   
    }
    cout<<team1<<" "<<team2<<endl;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...