# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
710730 |
2023-03-15T17:17:12 Z |
ElenaBM |
Ljeto (COCI21_ljeto) |
C++17 |
|
1 ms |
304 KB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, pa = 0, pb = 0;
vector<int> last(8, -11);
cin>> n;
for (int i= 0; i <n; ++i){
int t, j1, j2;
cin>> t>> j1>> j2;
if (j1 < 5) pa += 100;
else pb += 100;
if (t- last[j1-1] <= 10){
if (j1 < 5) pa += 50;
else pb += 50;
}
last[j1 -1] = t;
}
cout<< pa<< ' ' << pb << '\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
300 KB |
Output is correct |
2 |
Correct |
1 ms |
296 KB |
Output is correct |
3 |
Correct |
1 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
300 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
300 KB |
Output is correct |
4 |
Correct |
1 ms |
296 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
300 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Correct |
1 ms |
212 KB |
Output is correct |
10 |
Correct |
1 ms |
212 KB |
Output is correct |
11 |
Correct |
1 ms |
304 KB |
Output is correct |
12 |
Correct |
1 ms |
296 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |