Skip to content

Commit 1a7d405

Browse files
authored
Update 1.py
1 parent b3118ce commit 1a7d405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

โ€Ž3/1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
count = 0
33

44
# ํฐ ๋‹จ์œ„์˜ ํ™”ํ๋ถ€ํ„ฐ ์ฐจ๋ก€๋Œ€๋กœ ํ™•์ธํ•˜๊ธฐ
5-
list = [500, 100, 50, 10]
5+
coin_types = [500, 100, 50, 10]
66

7-
for coin in list:
7+
for coin in coin_types:
88
count += n // coin # ํ•ด๋‹น ํ™”ํ๋กœ ๊ฑฐ์Šฌ๋Ÿฌ ์ค„ ์ˆ˜ ์žˆ๋Š” ๋™์ „์˜ ๊ฐœ์ˆ˜ ์„ธ๊ธฐ
99
n %= coin
1010

0 commit comments

Comments
ย (0)