UVA568 (暑假-数论 -C - Just the Facts)
来源:互联网 发布:淘宝网法院拍卖 编辑:程序博客网 时间:2024/06/10 07:47
#include <cstdio>int main() {int n;while (scanf("%d",&n) != EOF) {int sum = 1;for (int i = 1; i <= n; i++) {sum *= i; while (sum % 10 == 0) {sum /= 10;}sum %= 100000;}printf("%5d -> %d\n", n, sum % 10);}return 0;}
0 0
- UVA568 (暑假-数论 -C - Just the Facts)
- uva568 Just the Facts
- UVa568 Just the Facts
- Just the Facts UVA568
- uva568-Just the Facts
- UVA568 Just the Facts
- UVA568 Just the Facts
- UVA 568 - Just the Facts(数论)
- UVa 568 Just the Facts (数论&打表&不打表)
- UVA - 568 - Just the Facts (简单数论!)
- zoj1222 Just the Facts
- 1199: Just the Facts
- Just the Facts(P1604)
- 568 - Just the Facts
- 568 - Just the Facts
- 568 - Just the Facts
- Just the Facts
- toj2034 Just the Facts
- 《剑指offer》解题笔记
- POJ 1012(约瑟夫问题)
- UVA340
- C语言:assert()函数用法总结
- iOS音频播放 (三):AudioFileStream
- UVA568 (暑假-数论 -C - Just the Facts)
- XSS之xssprotect
- oracle 命令汇总
- UVA408 (暑假-数论 -D - Uniform Generator)
- spring静态注入组件——工具类常用
- poj1260
- Linux编程细节5-内核-中断异常
- UVA10420 List of Conquests
- ejb3.0 中的@注释