HDU 2035 ( 人见人爱A^B )
来源:互联网 发布:淘宝评价管理怎么清零 编辑:程序博客网 时间:2024/05/02 02:47
Problem : 2035 ( 人见人爱A^B ) Judge Status : AcceptedRunId : 5683762 Language : C++ Author : ssunCode Render Status : Rendered By HDOJ C++ Code Render Version 0.01 Beta#include<iostream>using namespace std;int pow_mod(int a,int b){ if(b==1) return a; __int64 x = pow_mod(a,b/2); __int64 ans = x * x % 1000; if(b%2==1) ans = ans * a % 1000; return (int)ans;}int main(){ int a,b,i; while(scanf("%d%d",&a,&b)!=EOF) { if(a==0 && b==0) break; printf("%d\n",pow_mod(a,b)); } return 0;}
- (hdu 2035)人见人爱A^B
- HDU 2035 ( 人见人爱A^B )
- HDU 2035 人见人爱A^B
- hdu 2035人见人爱A^B
- HDU 2035 人见人爱A^B
- HDU 2035 人见人爱A^B
- HDU 2035 人见人爱A^B
- HDU 2035 人见人爱A^B
- hdu 2035 人见人爱A^B
- hdu-2035-人见人爱A^B
- HDU 2035 - 人见人爱A^B
- hdu 2035 人见人爱A^B
- [hdu 2035] 人见人爱A^B
- HDU 2035 人见人爱A^B
- HDU 2035 人见人爱A^B
- HDU 2035 人见人爱A^B
- HDU 2035 人见人爱A^B
- HDU 2035 人见人爱A^B
- 视频学习
- 柳传志:出海并购四要素
- compareTo, compareToIgnoreCase,equals,==用法
- Linux查看服务命令与端口使用状态
- 在Windows中安装mac 系统(AMD版)有图
- HDU 2035 ( 人见人爱A^B )
- 从轮廓中取得四肢与头部的算法
- oracle基础知识
- GBIF数据门户介绍gbif-dataportal
- jquery 图片效果plugin
- 软件人员推荐书目(都是国外经典书籍)
- UVa10085 - The most distant state
- 访问IplImage像素的值,为负数,需转换为uchar。
- 请教Table()使用方法 select * from table(....)