-코드
a = list(map(int, input().split()))
b = list(map(int, input().split()))
A, B = 0, 0
for i in range(10):
if a[i] > b[i]:
A += 1
elif a[i] < b[i]:
B += 1
win = max(A, B)
if A == B:
print('D')
elif A == win:
print('A')
elif B == win:
print('B')
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 11098번 첼시를 도와줘! (0) | 2022.02.18 |
---|---|
[백준/파이썬] 1969번 DNA (0) | 2022.02.17 |
[백준/파이썬] 2947번 나무 조각 (0) | 2022.02.16 |
[백준/파이썬] 5598번 카이사르 암호 (0) | 2022.02.16 |
[백준/파이썬] 24267번 알고리즘 수업 - 알고리즘의 수행 시간 6 (0) | 2022.02.15 |