上一页 1 ··· 6 7 8 9 10
摘要: Description In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers: In this problem, you are given n, yo 阅读全文
posted @ 2016-08-04 20:30 爱记录一切美好的微笑 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Light OJ 1078 题意: 给你两个整数,n和m,问有最少有几个m组成的数能被n整除。。。。。不用同余会超时。。。。 思路:同余定理: (A + B) mod M = ( A mod M + B mod M ) mod M(A * B) mod M = ((A mod M) *( B mod 阅读全文
posted @ 2016-08-01 15:44 爱记录一切美好的微笑 阅读(376) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1052 阅读全文
posted @ 2016-08-01 11:25 爱记录一切美好的微笑 阅读(1148) 评论(0) 推荐(1) 编辑
摘要: #include <cstdio> #include <cstring> #include<iostream> #include<queue> #include<stack> #include<cmath> #include <map> #include <algorithm> using name 阅读全文
posted @ 2016-08-01 10:56 爱记录一切美好的微笑 阅读(219) 评论(0) 推荐(0) 编辑
摘要: poj 1182 食物链 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 62711 Accepted: 18404 Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C 阅读全文
posted @ 2016-08-01 10:50 爱记录一切美好的微笑 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <cstring> #include<iostream> #include<queue> #include<stack> #include<cmath> #include <map> #include <algorithm> using name 阅读全文
posted @ 2016-08-01 10:17 爱记录一切美好的微笑 阅读(371) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10