Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Text
- Digital Forensics
- Incognito
- N0Named
- misc
- wargame
- Network
- CTF
- 문자열
- xcz.kr
- 사칙연산
- Python
- Web Hacking
- Web
- php
- 써니나타스
- SuNiNaTas
- 수학
- Database
- 백준
- 구현
- cryptography
- Forensics
- 인코그니토
- HackCTF
- C
- MySQL
- 정렬
- 그리디 알고리즘
- writeup
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 5533번 유니크 본문
[Baekjoon/Python3] 5533번 유니크
5533번: 유니크
첫째 줄에 참가자의 수 N이 주어진다. (2 ≤ N ≤ 200) 둘째 줄부터 N개 줄에는 각 플레이어가 1번째, 2번째, 3번째 게임에서 쓴 수가 공백으로 구분되어 주어진다.
www.acmicpc.net
n = int(input())
first = []
second = []
third = []
for i in range(n):
a, b, c = map(int, input().split())
first.append(a)
second.append(b)
third.append(c)
for j in range(n):
score = 0
if first.count(first[j]) == 1:
score += first[j]
if second.count(second[j]) == 1:
score += second[j]
if third.count(third[j]) == 1:
score += third[j]
print(score)
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 5554번 심부름 가는 길 (0) | 2020.12.05 |
---|---|
[Baekjoon/Python3] 5543번 상근날드 (0) | 2020.12.05 |
[Baekjoon/Python3] 5532번 방학 숙제 (0) | 2020.12.05 |
[Baekjoon/Python3] 5524번 입실 관리 (0) | 2020.12.05 |
[Baekjoon/Python3] 5523번 경기 결과 (0) | 2020.12.05 |
Comments