Factorial by uru

package
main
import("os";."bignum";c"strconv";t"strings")func
main(){s:=make([]byte,99);l,_:=os.Stdin.Read(s);for _,x:=range t.Split(string(s[0:l-1]),`
`,0){u,_:=c.Atoui(x);println(Fact(u).String())}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page