博客
关于我
hdu 2035 人见人爱A^B
阅读量:139 次
发布时间:2019-02-27

本文共 370 字,大约阅读时间需要 1 分钟。

#include 
using namespace std;#define LL long longint qp(LL a, LL b, int mod){ int res = 1; while(b){ if(b&1) res = res*a%mod; a = a*a%mod; b >>= 1; } return res;}int main(){ int a, b; while(scanf("%d %d", &a, &b) == 2){ if(a == 0 && b == 0) break; printf("%d\n", qp(a, b, 1000)); } return 0;}

转载地址:http://tgnb.baihongyu.com/

你可能感兴趣的文章
mysql-5.6.17-win32免安装版配置
查看>>
mysql-5.7.18安装
查看>>
MySQL-Buffer的应用
查看>>
mysql-cluster 安装篇(1)---简介
查看>>
mysql-connector-java.jar乱码,最新版mysql-connector-java-8.0.15.jar,如何愉快的进行JDBC操作...
查看>>
mysql-connector-java各种版本下载地址
查看>>
mysql-EXPLAIN
查看>>
MySQL-Explain的详解
查看>>
mysql-group_concat
查看>>
MySQL-redo日志
查看>>
MySQL-【1】配置
查看>>
MySQL-【4】基本操作
查看>>
Mysql-丢失更新
查看>>
Mysql-事务阻塞
查看>>
Mysql-存储引擎
查看>>
mysql-开启慢查询&所有操作记录日志
查看>>
MySQL-数据目录
查看>>
MySQL-数据页的结构
查看>>
MySQL-架构篇
查看>>
MySQL-索引的分类(聚簇索引、二级索引、联合索引)
查看>>