N!末尾有多少个0?

来源:互联网 发布:linux内网建站 编辑:程序博客网 时间:2024/05/02 01:52
int ans=0;while (n){ans+=n/5;n/=5;}

0 0
原创粉丝点击