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>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
vector<int> t(1+n), a(1+n), b(1+n);
for(int i = 1; i <= n; i++) cin >> t[i] >> a[i] >> b[i];
vector<int> score(2, 0);
for(int i = 1; i <= n; i++)
{
score[ (a[i] > 4) ] += 100;
for(int j = 1; j < i; j++)
{
if(a[i] != a[j]) continue;
if(t[i] - t[j] <= 10)
{
score[ (a[i] > 4) ] += 50;
break;
}
}
}
cout << score[0] << ' ' << score[1] << '\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... |