31 lines
470 B
Python
31 lines
470 B
Python
from sys import argv
|
|
|
|
|
|
limit = int(argv[1])
|
|
|
|
kind = range(1, 21)
|
|
kind.extend(range(2, 41, 2))
|
|
kind.extend(range(3, 61, 3))
|
|
kind.extend([25, 50])
|
|
|
|
doub = range(2, 41, 2)
|
|
doub.extend([50])
|
|
|
|
count = 0
|
|
|
|
for i in doub:
|
|
if i <= limit:
|
|
count += 1
|
|
for j in kind:
|
|
if i + j <= limit:
|
|
count += 1
|
|
|
|
tmp = 0
|
|
for i in doub:
|
|
for j in xrange(len(kind)):
|
|
for k in xrange(j, len(kind)):
|
|
if i + kind[j] + kind[k] <= limit:
|
|
tmp += 1
|
|
|
|
print count + tmp
|