| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 861735 | Cyber_Wolf | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 348 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 <bits/stdc++.h>
using namespace std;
#define lg long long
int main()
{
lg n;
cin >> n;
vector<lg> la(8, -10000000000);
lg a = 0, b = 0;
for(int i = 0; i < n; i++)
{
lg t, u, v;
cin >> t >> u >> v;
if(u <= 4) a += 100;
else b += 100;
u--;
if(t-la[u] <= 10 && u < 4) a += 50;
else if(t-la[u] <= 10) b += 50;
la[u] = t;
}
cout << a << ' ' << b << '\n';
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
