Submission #671031

#TimeUsernameProblemLanguageResultExecution timeMemory
671031NimbostratusLjeto (COCI21_ljeto)C++17
25 / 50
1 ms340 KiB
#include <bits/stdc++.h>
using namespace std;
using lint = long long;
const int maxn = 2e5 + 5;
const int inf = 1e9 + 5;
const int mod = 1e9 + 7;

int n;
int score[2];
int player[2];
int last[2] = {-inf, -inf};

signed main() {
	#ifdef Local
	freopen("in.txt", "r", stdin);
	freopen("out.txt", "w", stdout);
	#endif
	cin >> n;
	for(int i = 1, t, x, y; i <= n; i++) {
		cin >> t >> x >> y;
		score[x > 4] += 100;
		if(t - last[x > 4] <= 10 && player[x > 4] == x)
			score[x > 4] += 50;
		last[x > 4] = t;
		player[x > 4] = x;
	}
	cout << score[0] << " " << score[1] << endl;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...