RXD and math HDU
来源:互联网 发布:thinkphp5开发大型cms 编辑:程序博客网 时间:2024/05/22 00:34
Sample Input
10 10
Sample Output
Case #1: 999999937
打表找规律 快速幂
#include<cstdio>using namespace std;#define ll long longconst int mod=1e9+7;///注意取余ll pow(ll a,ll n){ ll text=1; while (n) { if (n&1) text = (text%mod)*(a%mod)%mod; a = (a%mod)*(a%mod)%mod; n >>= 1; } return text;}int main(){ ll n,k; int i=1; while(~scanf("%lld%lld",&n,&k)) { ll text=pow(n,k); printf("Case #%d: %lld\n",i++,text); } return 0;}
阅读全文
0 0
- RXD and math HDU
- HDU 6063-RXD and math
- hdu-6063-RXD and math
- HDU 6063 RXD and math
- HDU 6063 RXD and math
- hdu--6063 RXD and math
- HDU 6063 RXD and math
- HDU-6063-RXD and math-
- HDU--6063--RXD and math
- HDU 6063 RXD and math(数学 )
- HDU 6063 RXD and math (打表)
- HDU 6063 RXD and math【数学】
- hdu 多校联赛 RXD and math
- hdu 6063 RXD and math (规律题)
- HDU 6063 RXD and math(数论)
- HDU 6063 RXD and math(快速幂)
- RXD and math
- HDU6063-RXD and math
- Codeforces 835 D Palindromic characteristics(区间DP)
- Qt一步步搭建TcpServer1——封装QTcpServer,QTcpSocket
- 仿饿了么搜索页面特效
- 指针数组实现字符排序
- Java常用类及其方法(五)Character
- RXD and math HDU
- 英文字体
- JS动态的生成表格
- el表达式及一些运用
- 设计——素材网站
- hdu 1512 左偏堆
- Java使用IText PDF 导出报表
- MySQL基础操作(一)
- angular的常用的三种服务 service,factory,provider