Submission #638944

# Submission time Handle Problem Language Result Execution time Memory
638944 2022-09-08T03:59:17 Z MatheusLealV Ljeto (COCI21_ljeto) C++17
10 / 50
1 ms 212 KB
#include <bits/stdc++.h>
using namespace std;

int n, last[10],L,R;
int main(){
	ios::sync_with_stdio(false); cin.tie(0);
	cin>>n;
	memset(last, -1, sizeof last);
	for(int i = 1, t,a,b; i <= n; i++){
		cin>>t>>a>>b;
		if(a <= 3) L += 100;
		else R += 100;
		if(last[a] != -1 and t - last[a] <= 10){
			if(a <= 3) L += 50;
			else R += 50;
		}
		last[a]=t;
	}
	cout<<L<<" "<<R<<"\n";
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Incorrect 1 ms 212 KB Output isn't correct
4 Halted 0 ms 0 KB -