c++ 练习4 google面试题
来源:互联网 发布:小意思mac激活码 编辑:程序博客网 时间:2024/06/05 09:32
谷歌面试题:1024! 末尾有多少个0?
思路:
#include <iostream>
using namespace std;
int fiveNum(int n)
{
int ans=0;
while(n)
{
n=n/5;
ans=ans+n;
}
return ans;
}
int main()
{
int i = 1024;
int count = fiveNum(i);
cout<<count<<endl;
system("pause");
return 0;
}
- c++ 练习4 google面试题
- linux线程4(google面试题)
- Google 面试题讨论
- 小小Google面试题
- google面试题
- 面试题2-- Google
- google面试题
- google面试题
- Google 的面试题
- Google面试题
- 一道Google面试题
- google 面试题 分享
- google面试题
- GOOGLE面试题
- Google面试题
- Google面试题
- google面试题
- google一些面试题
- linux 各种信号 产生的原因
- 数据库类的编写
- 文件访问(系统调用)
- XenBus and XenStore
- xen安装CentOS虚拟机(使用163镜像)
- c++ 练习4 google面试题
- 线程安全
- Android: QQ UI 设计
- 软考心得(2011-11-12)
- Js操作Cookies
- VC6.0 MSDN不能索引的解决办法
- 《实分析》之二:为什么要做分析
- JAVA1.5新特性----可变参数
- Giesecke & Devrient推出全球首张Nano SIM卡,比Micro SIM卡小1/3