摘要: 首先是二分快速幂的写法: 1 long long doexp(int x,int y) 2 { 3 long long i=1,j=x; 4 long long k; 5 if (x==1||y==1) return x; 6 while (y) 7 { 8 ... 阅读全文
posted @ 2015-02-09 15:22 辰帆 阅读(230) 评论(0) 推荐(0) 编辑
摘要: GTY's birthday giftTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others) 【Problem Description】FFZ's birthday is coming. GTY ... 阅读全文
posted @ 2015-02-09 12:00 辰帆 阅读(229) 评论(0) 推荐(0) 编辑