Uva 568 - Just the Facts
来源:互联网 发布:java异步调用接口 编辑:程序博客网 时间:2024/05/28 05:18
莫名其妙在什么时候写过=.=
1Y
存后5位(没有后置0)
#include<stdio.h>#define MAX 100000int dp[10010];int main(){int i;dp[0]=1;for(i=1;i<=9999;i++){dp[i]=i*dp[i-1];while(dp[i]%10==0)dp[i]/=10;dp[i]%=MAX;}int n;while(scanf("%d",&n)!=EOF)printf("%5d -> %d\n",n,dp[n]%10);return 0;}
- uva 568 - Just the Facts
- Uva 568 - Just the Facts
- uva 568 just the facts
- UVa 568 - Just the Facts
- uva 568 - Just the Facts
- uva-568 - Just the Facts
- Uva 568 - Just the Facts
- UVa 568 Just the Facts
- UVa 568: Just the facts
- UVA 568 Just the Facts
- uva 568 - Just the Facts
- uva 568 Just the Facts
- UVa 568 - Just the Facts
- uva 568 Just the Facts
- UVA 568 - Just the Facts
- uva 568 - Just the Facts
- uva 568 just the facts
- UVa 568 - Just the Facts
- MINA2 之快速上手指南
- C++对象模型简介(一)——《深度探索C++对象模型》精简笔记
- jQuery 操作FrameSet
- oracle 获取当前SCHEMA
- 获取当前进程的窗口
- Uva 568 - Just the Facts
- 有关android的学习笔记
- iOS 详解NSXMLParser方法解析XML数据方法
- 寻找熟悉手机测试的兼职讲师
- 创建通用的List<Map>型Primefaces数据模型
- C++封装SQLite实例<五>
- 结合使用 Hadoop 和 Couchbase
- struts2自定义方法的输入校验
- C语言关于产生随机数文章转载两篇(一)