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 timelasthit[9] = {-1, -1, -1, -1, -1, -1, -1, -1};
int timelang = 0;
int timbebek = 0;
for (int i = 0; i < n; i++)
{
int t, a, b;
cin >> t >> a >> b;
int score = 100;
if (timelasthit[a] != -1 && (t - timelasthit[a]) <= 10) score += 50;
timelasthit[a] = t;
if (a <= 4) timelang += score;
else timbebek += score;
}
cout << timelang << ' ' << timbebek << 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... |