Submission #671031

# Submission time Handle Problem Language Result Execution time Memory
671031 2022-12-11T17:13:10 Z Nimbostratus Ljeto (COCI21_ljeto) C++17
25 / 50
1 ms 340 KB
#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 time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 300 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 1 ms 300 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Incorrect 1 ms 212 KB Output isn't correct
12 Halted 0 ms 0 KB -