-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path31.py
31 lines (31 loc) · 879 Bytes
/
31.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python
import time
import math
s = 1
for po_100 in xrange(2+1):
suma = po_100*100
if 200 < suma:
break
for po_50 in xrange(5+1):
suma = po_100*100+po_50*50
if 200 < suma:
break
for po_20 in xrange(10+1):
suma = po_100*100+po_50*50+po_20*20
if 200 < suma:
break
for po_10 in xrange(20+1):
suma = po_100*100+po_50*50+po_20*20+po_10*10
if 200 < suma:
break
for po_5 in xrange(40+1):
suma = po_100*100+po_50*50+po_20*20+po_10*10+po_5*5
if 200 < suma:
break
for po_2 in xrange(100+1):
suma = po_100*100+po_50*50+po_20*20+po_10*10+po_5*5+po_2*2
if 200 >= suma:
s +=1
else:
break
print s