← Back to List

15858번: Simple Arithmetic ↗

Solutions

Python 3
191 B | 191 chars
a,b,c = map(int,input().split())
k = a*b
print((k//c),end = ".")
k %= c
k*=10
cnt = 0
if(k == 0):
    print(0)
while k > 0 and cnt < 10:
    print(k//c,end="")
    k %=c
    k*=10
    cnt +=1