sdnu1081.2013
来源:互联网 发布:软件开发质量保证措施 编辑:程序博客网 时间:2024/06/05 21:51
1081.2013
Time Limit: 1000 MS Memory Limit: 32768 KB
Total Submission(s): 141 Accepted Submission(s): 40
Description
计算2013^b^c mod 10000000
Input
两个整数 b>0 c>0
Output
输出2013^b^c mod 10000000的结果
Sample Input
2012 2011
Sample Output
3307281
Source
Unknown
#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>#include<cmath>using namespace std;int main(){ long long a,b,c,s,t,i; cin >> b >> c; t= b*c; s=1; a=2013; a%=10000000; while(t!=0){ if(t&1) s=s*a%10000000; a= a*a%10000000; t>>=1; } printf("%lld\n", s); return 0;}
阅读全文
0 0
- sdnu1081.2013
- 2013
- 2013
- 2013!
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013
- 2013: Sum
- sicily 2013
- Understanding LSTM Networks
- configuration.output.path: The provided value "./" is not an absolute path!
- hibernate简介
- JAVA 构建使用 Native 库
- 接下来的学习计划
- sdnu1081.2013
- python 正则表达式 (持续更新)
- 说说C++的类型转换
- SELECT LAST_INSERT_ID() 的使用和注意事项
- Eclipse中修改SVN用户名和密码方法
- react-native 底部导航
- c#数字图像处理-平移
- Java-方法
- VS版本分析