제출 #494196

#제출 시각아이디문제언어결과실행 시간메모리
494196AlperenTLjeto (COCI21_ljeto)C++17
50 / 50
1 ms312 KiB
#include <bits/stdc++.h> using namespace std; const int M = 8 + 5, INF = 1e9 + 5; int n, t, a, b, ansa, ansb, last[M]; int main(){ ios_base::sync_with_stdio(false);cin.tie(NULL); fill(last, last + M, -INF); cin >> n; while(n--){ cin >> t >> a >> b; if(a <= 4) ansa += 100 + (t - last[a] <= 10 ? 50 : 0); else ansb += 100 + (t - last[a] <= 10 ? 50 : 0); last[a] = t; } cout << ansa << " " << ansb; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...