pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
person check
4 hours ago
node add
4 hours ago
ZonedDateTime
4 hours ago
nid
4 hours ago
lowestCars highestCars
4 hours ago
Entity id
4 hours ago
binkey
4 hours ago
node access
4 hours ago
node comment
4 hours ago
FastCode
4 hours ago
cnt
import
math
x =
int
(
input
(
)
)
arr =
[
2000
,
700
,
500
,
200
,
150
,
100
,
50
,
20
,
10
,
5
,
2
,
1
]
res =
0
cnt =
0
for
i
in
arr:
if
i <= x:
res =
math
.
floor
(
x/i
)
cnt+=
1
x -= i
print
(
i,res
)
print
(
cnt
)
Parsed in 0.002 seconds