| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1032679 | vjudge1 | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 432 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int last[8] = {};
for(int i = 0; i < 8; i++) last[i] = -20;
int s1 = 0, s2 = 0;
while(n--)
{
int t , a, b;
cin >> t >> a >> b;
if(a <= 4)
{
s1 += 100;
if(t - last[a] <= 10) s1 += 50;
last[a] = t;
}
else
{
s2 += 100;
if(t - last[a] <= 10) s2 += 50;
last[a] = t;
}
}
cout << s1 << ' ' << s2 << endl;
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
