https://www.acmicpc.net/problem/31610
31610번: 飴の袋詰め (Drops Packing)
1 個 A 円の飴を B 個と,C 円の袋を 1 つ買う.合計金額はいくらか求めよ.
www.acmicpc.net
1 2 3 4 5 6 7 8 9 10 11 | def sol(a, b, c): return a * b + c if __name__ == '__main__': a = int(input()) b = int(input()) c = int(input()) print(sol(a, b, c)) | cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 30402 감마선을 맞은 컴퓨터 (0) | 2024.04.16 |
---|---|
백준 31606 果物 (Fruit) (0) | 2024.04.15 |
백준 31611 火曜日 (Tuesday) (0) | 2024.04.15 |
백준 31614 分 (Minutes) (0) | 2024.04.15 |
백준 31654 Adding Trouble (0) | 2024.04.15 |
댓글