본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 32684번 장기

by 현장 2024. 11. 18.

-Code

point = [13, 7, 5, 3, 3, 2]
cho = list(map(int, input().split()))
han = list(map(int, input().split()))
cho_res, han_res = 0, 1.5

for i in range(6):
    cho_res += point[i] * cho[i]
    han_res += point[i] * han[i]

print("cocjr0208" if cho_res > han_res else "ekwoo")