Just the Facts
来源:互联网 发布:php能开发什么 编辑:程序博客网 时间:2024/06/05 11:51
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=7&problem=509&mosmsg=Submission+received+with+ID+15627206
#include<iostream>
using namespace std;
int main()
{
int a[10010]={1};
int i,j,x;
for(i=1;i<=10000;i++)
{
a[i]=a[i-1]*i;
while(a[i]%10==0)
a[i]/=10;
a[i]%=100000;
}
while(cin>>x)
printf("%5d -> %d\n",x,a[x]%10);
return 0;
}
0 0
- zoj1222 Just the Facts
- 1199: Just the Facts
- Just the Facts(P1604)
- 568 - Just the Facts
- 568 - Just the Facts
- 568 - Just the Facts
- uva568 Just the Facts
- UVa568 Just the Facts
- Just the Facts
- toj2034 Just the Facts
- Just the Facts UVA568
- Just the Facts
- 568 - Just the Facts
- Just the Facts uva
- uva568-Just the Facts
- UVA568 Just the Facts
- Just the Facts
- UVA Just the Facts
- C++ dll 学习记录
- 制作openstack Centos镜像 -- Example: CentOS image
- HotNews 杂志博客 WordPress主题
- 二叉树的C++实现
- Style 时尚博客 WordPress主题
- Just the Facts
- [深入学习C#]LINQ查询表达式详解(2)——查询表达式的转换
- matlab 联合modelsim 调试图片
- 程序员,你有自己的博客吗?现在有了。
- TCP/IP协议族-----3、底层技术
- java中单例模式singleton
- LeetCode 之 Reverse Integer — C++ 实现
- 位运算
- 直接插入排序 Java