| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1324321 | benjaminshih | Ljeto (COCI21_ljeto) | C++20 | 0 ms | 332 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 time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
