导航

2015年8月3日

摘要: 问题描述:求一个整数的n次幂,对m取余。思路一:简单循环 1 int Pow(int num, int n, int m) 2 { 3 int res = 1; 4 5 while (n--) { 6 res *= num; 7 } 8 9 ... 阅读全文

posted @ 2015-08-03 18:59 smartmhs 阅读(245) 评论(0) 推荐(0)