제출 #974537

#제출 시각아이디문제언어결과실행 시간메모리
974537vjudge1Ljeto (COCI21_ljeto)C++17
25 / 50
1 ms348 KiB
using namespace std; #include <bits/stdc++.h> int main(){ int N; cin>>N; int T[N+1]; int A[N+1]; int B[N+1]; for(int i=1;i<=N;i++){ cin>>T[i]>>A[i]>>B[i]; } int poinA=0; int poinB=0; for(int i=1;i<=N;i++){ if(A[i]<=4){ poinA+=100; if(A[i+1]==A[i]&&T[i+1]-T[i]<=10){ poinA+=50; } }else{ poinB+=100; if(B[i+1]==B[i]&&T[i+1]-T[i]<=10){ poinB+=50; } } } cout<<poinA<<" "<<poinB; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...