Submission #1324321

#TimeUsernameProblemLanguageResultExecution timeMemory
1324321benjaminshihLjeto (COCI21_ljeto)C++20
50 / 50
0 ms332 KiB
#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    vector<int> score(9,0);
    vector<int> last(9,-1000);
    while(n--){
        int t,a,b;
        cin >> t >> a >> b;
        score[a] += 100;
        if(t - last[a] <= 10){
            score[a] += 50;
        }
        last[a] = t;
    }
    cout << score[1] + score[2] + score[3] + score[4] << " " << score[5] + score[6] + score[7] + score[8];
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...