제출 #974297

#제출 시각아이디문제언어결과실행 시간메모리
974297vjudge1Ljeto (COCI21_ljeto)C++17
50 / 50
1 ms348 KiB
#include <iostream> #include <vector> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin>>n; vector <int> arr(9, -100); int timA=0; int timB=0; for (int i=0; i<n; i++){ int a, b, c; cin>>a>>b>>c; if(b<=4){ timA+=100; if((arr[b]+10)>=a){ timA+=50; } } else{ timB+=100; if((arr[b]+10)>=a){ timB+=50; } } arr[b]=a; } cout<<timA<<" "<<timB<<endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...