
数论
文章平均质量分 70
Nowara_Shinnosuke
这个作者很懒,什么都没留下…
展开
-
E - RealPhobia HDU - 4180
Bert is a programmer with a real fear of floating point arithmetic. Bert has quite successfully used rational numbers to write his programs but he does not like it when the denominator grows large. Yo原创 2017-07-21 16:50:39 · 525 阅读 · 0 评论 -
F - Pagodas HDU - 5512
nn pagodas were standing erect in Hong Jue Si between the Niushou Mountain and the Yuntai Mountain, labelled from 11 to nn. However, only two of them (labelled aa and bb, where 1≤a≠b≤n1≤a≠b≤n)原创 2017-07-21 16:58:29 · 249 阅读 · 0 评论 -
J - 2016 CSU - 1803
给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤m; 2. a×b 是 2016 的倍数。 Input 输入包含不超过 30 组数据。 每组数据包含两个整数 n,m (1≤n,m≤10 9). Output对于每组数据,输出一个整数表示满足条件的数量。原创 2017-07-21 17:03:12 · 409 阅读 · 0 评论 -
I - Hello Kiki HDU - 3579
One day I was shopping in the supermarket. There was a cashier counting coins seriously when a little kid running and singing "门前大桥下游过一群鸭,快来快来 数一数,二四六七八". And then the cashier put the counted coins ba原创 2017-07-21 17:20:13 · 443 阅读 · 0 评论 -
M - How many integers can you find HDU - 1796
Now you get a number N, and a M-integers set, you should find out how many integers which are small than N, that they can divided exactly by any integers in the set. For example, N=12, and M-integer s原创 2017-07-21 17:31:34 · 307 阅读 · 0 评论 -
K - Co-prime HDU - 4135
Given a number N, you are asked to count the number of integers between A and B inclusive which are relatively prime to N. Two integers are said to be co-prime or relatively prime if they have no co原创 2017-07-21 17:33:45 · 347 阅读 · 0 评论 -
1967: Election
Description After all the fundraising, campaigning and debating, the election day has finally arrived. Only two candidates remain on the ballot and you work as an aide to one of them. Reports from t原创 2017-07-24 11:12:59 · 318 阅读 · 0 评论 -
hdu6053TrickGCD(莫比乌斯反演)
参考:http://blog.youkuaiyun.com/u013632138/article/details/52250567 http://blog.youkuaiyun.com/xlzhang223/article/details/76218088 #include #include #include #include using namespace std; typedef long l原创 2017-07-28 15:31:19 · 412 阅读 · 0 评论