lhjy666 @ 2018-10-04 10:46:42
test=int(input())
for w in range(1,test+1):
s = input().split()
s[0]=int(s[0])
s[1]=int(s[1])
z=1
for i in range(1,s[0]+1):
z=z*i
t=0
while z>1 :
if (z % 10==s[1]) :
t=t+1
z=z/10
print(t)
by 宇智波—鼬 @ 2018-10-04 10:48:40
没毛病
by lhjy666 @ 2018-10-04 10:49:43
by w23c3c3 @ 2018-10-04 11:04:16
@你无从所知 python的/是带小数的,整除请用//
by w23c3c3 @ 2018-10-04 11:05:20
@你无从所知 但是wa了
by w23c3c3 @ 2018-10-04 11:07:26
@你无从所知 再改一下:while(z>0)
by lhjy666 @ 2018-10-04 11:18:44