답안 #716472

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
716472 2023-03-30T06:55:06 Z Sandarach151 Ljeto (COCI21_ljeto) C++17
25 / 50
1 ms 316 KB
#include<bits/stdc++.h>
using namespace std;

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int n;
	cin >> n;
	int team1 = -11;
	int pla1 = 0;
	int pla2 = 0;
	int team2 = -11;
	int score1 = 0;
	int score2 = 0;
	for(int i=0; i<n; i++){
		int t, a, b;
		cin >> t >> a >> b;
		if(a<=4){
			if(t<=team1+10 && a==pla1){
				score1+=150;
			}
			else{
				score1+=100;
			}
			team1 = t;
			pla1 = a;
		}
		else{
			if(t<=team2+10 && a==pla2){
				score2+=150;
			}
			else{
				score2+=100;
			}
			team2 = t;
			pla2=a;
		}
	}
	cout << score1 << ' ' << score2 << '\n';
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 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
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Incorrect 1 ms 212 KB Output isn't correct
12 Halted 0 ms 0 KB -