개발자 성장 기록/코테

[백준] 25304 번 Python

으노방 2022. 8. 22. 22:28

풀이
total_money = int(input())
total_num = int(input())

answer = 0
for i in range(total_num):
    money, num = input().split()
    answer+=(int(money)*int(num))
if total_money == answer: print("Yes")
else: print("No")

'개발자 성장 기록 > 코테' 카테고리의 다른 글

[백준]10757번 Python  (0) 2022.08.23
[백준] 1193 Python  (0) 2022.08.23
[프로그래머스]체육복 Python  (0) 2022.08.21
[프로그래머스]소수찾기 Python  (0) 2022.08.20
[프로그래머스]전화번호 목록 Python  (0) 2022.08.19