摘要: <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 ... 阅读全文
posted @ 2016-01-14 22:26 qscqesze 阅读(393) 评论(0) 推荐(0) 编辑
摘要: <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... 阅读全文
posted @ 2016-01-14 13:16 qscqesze 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 奇怪的数学公式系列: 快速幂: 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 阅读全文
posted @ 2016-01-14 13:06 qscqesze 阅读(1623) 评论(0) 推荐(4) 编辑