proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "" ,discardable.} proc scan(): int = while true: let k = getchar_unlocked() if k < '0': return result = 10 * result + k.ord - '0'.ord var a = scan() var b = scan() stdout.write $(a div b) , "." for i in 0..<50: a = a mod b a *= 10 stdout.write $(a div b) echo ""