제출 #925024

#제출 시각아이디문제언어결과실행 시간메모리
925024Abdalaziz_AlshamiLjeto (COCI21_ljeto)C++17
50 / 50
1 ms456 KiB
#include<bits/stdc++.h> #define int long long using namespace std; signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin>>n; int a[9]; for(int i=1;i<9;i++) a[i]=-1e9; int x=0,y=0; while(n--) { int t,u,v; cin>>t>>u>>v; if(u<5) { x+=100; if(t-a[u]<=10) x+=50; } else { y+=100; if(t-a[u]<=10) y+=50; } a[u]=t; } cout<<x<<' '<<y<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...