1
2
3
4
5
|
def cnt(nums):
return nums[0]*6+nums[1]*3+nums[2]*2+nums[3]*1+nums[4]*2
nums1=list(map(int, input().split()))
nums2=list(map(int, input().split()))
print(cnt(nums1),cnt(nums2))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 24309 РАВЕНСТВО (0) | 2022.05.24 |
---|---|
백준 24568 Cupcake Party (0) | 2022.05.24 |
codeforces 1669A - Division? (0) | 2022.05.24 |
백준 10995 별 찍기 - 20 (0) | 2022.05.16 |
codeforces 1619A - Square String? (0) | 2022.05.12 |
댓글