摘要:
<center GCD</center 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1695 DescriptionGiven 5 integers: a, b, c, d, k, you're to find x in a...b, y in ... 阅读全文
摘要:
<center Sumdiv</center 题目连接:http://poj.org/problem?id=1845 DescriptionConsider two natural numbers A and B. Let S be the sum of all natural divisors... 阅读全文
摘要:
奇怪的数学公式系列: 快速幂: long long quickpow(long long m,long long n,long long k)//返回m^n%k { long long b = 1; while (n 0) { if (n & 1) b = (b m)%k; n = n 1 ; m 阅读全文