1 ImportSYS2 #Import Psyco #很奇怪, this problem with Psyco on runtime error3 4 5 #psyco.full ()6 7 8 defZ (n):#This is supposed to be a trick algorithm.9R =0Ten while5 <=N: OneN/= 5 AR + =N - returnR - the - defMain (): -n =Int (sys.stdin.readline ()) - forTinchSys.stdin:#There's no problem with this type of loop. + PrintZ (int (t)) #输入的是String, be sure to remember int conversion - +Main ()#this kind of function architecture is very scientific and good
A different approach
1 for n in map (int, Sys.stdin.read (). Split ()) [1:]: 2 print Z (n)
Learn
For T in Sys.stdin this loop input can be reused
This functional architecture is very scientific.
Initial understanding of the array, the use of the colon essence
[1:] escaped the first element (is the number), and then to the last element
Error
Psyco () not always able to use
Factorial Solved problem Code:fctrl