CodeForces 630 A. Again Twenty Five!(水~)
2016-02-21 09:35
471 查看
Description
给出一整数n,输出5^n的最后两位
Input
一整数n(2<=n<=2*10^18)
Output
输出5^n的最后两位
Sample Input
2
Sample Output
25
Solution
水题,n>=2时5^n%100=25
Code
给出一整数n,输出5^n的最后两位
Input
一整数n(2<=n<=2*10^18)
Output
输出5^n的最后两位
Sample Input
2
Sample Output
25
Solution
水题,n>=2时5^n%100=25
Code
#include<cstdio> #include<iostream> using namespace std; #define maxn 22 char n[maxn]; int main() { while(~scanf("%s",n)) printf("25\n"); return 0; }
相关文章推荐
- git@xxxx.git: Auth fail错误
- poj-3007 Organize Your Train part II
- 关于linker command failed with exit code 1 (use -v to see invocation)错误
- 最近学习
- .NET Task的新认识
- async和await
- Agent admitted failure to sign using the key
- 关于async和await的一些误区实例详解
- 遇到IOError: CRC check failed这样的问题的可能解决方法
- failed to obtain a cell from its dataSource
- hibernate中实体domain对象的生命周期
- android camera setParameters failed 类问题分析总结
- PIPE和socketpair的区别
- 四、再谈PyTypeObject http://blog.csdn.net/debugm/article/details/8243496
- 自己生成非官方iPhone toolchain的头文件
- HDU 2476 String painter(区间dp)
- pcie干货系列之-TLP’s size/TLP fail/4K boundary/requs
- Codeforces 630A Again Twenty Five!
- saiku、mondrian前奏之——立方体、维度、Schema的基本概念
- saiku、mondrian前奏之——立方体、维度、Schema的基本概念