| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1238186 | wetsponge | Ljeto (COCI21_ljeto) | C++20 | 0 ms | 328 KiB |
#include <bits/stdc++.h>
#define int long long
#define endl "\n"
#define mod 1000000007
using namespace std;
int team1,team2;
int arr[8];
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 time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
