← Back to List

25905번: 장인은 도구를 탓하지 않는다 ↗

Solutions

Python 3
314 B | 314 chars
from math import factorial
l = [input() for i in range(10)]

d = []

for i in l:
    if i == "1":
        d.append(100)
    elif len(i) == 3:
        d.append(int(i[-1]) * 10)
    else:
        d.append(int(i[-2:]))

d.sort()

ret = 1

for i in d[1:]:
    ret *= i

ret /= factorial(9)

ret /= 10 ** 9

print(ret)