上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: UVA12716 GCD XOR Description Given an integer N, find how many pairs (A, B) are there such that: gcd(A, B) = A xor B where 1 ≤ B ≤ A ≤ N. Here gcd(A, 阅读全文
posted @ 2018-09-04 20:21 caomp 阅读(103) 评论(0) 推荐(0)
摘要: UVA10791 Minimum Sum LCM Description LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is a multiple of all int 阅读全文
posted @ 2018-09-04 17:36 caomp 阅读(219) 评论(0) 推荐(0)
摘要: UVA 10375 Choose and divide Description The binomial coefficient C(m, n) is defined as C(m, n) = m!/((m − n)! n!) Given four natural numbers p, q, r, 阅读全文
posted @ 2018-09-04 16:58 caomp 阅读(136) 评论(0) 推荐(0)
摘要: UVA 12169 Disgruntled Judge Description Once upon a time, there was an NWERC judge with a tendency to create slightly too hard problems. As a result, 阅读全文
posted @ 2018-09-04 16:25 caomp 阅读(197) 评论(0) 推荐(0)
摘要: UVA11582 Colossal Fibonacci Numbers! Description The i’th Fibonacci number f(i) is recursively defined in the following way: • f(0) = 0 and f(1) = 1 • 阅读全文
posted @ 2018-09-04 15:27 caomp 阅读(169) 评论(0) 推荐(0)
摘要: 博弈论入门 有一种很有意思的游戏,就是有物体若干堆,可以是火柴棍或是围棋子等等均可。两个人轮流从堆中取物体若干,规定最后取光物体者取胜。这是我国民间很古老的一个游戏,别看这游戏极其简单,却蕴含着深刻的数学原理。下面我们来分析一下要如何才能够取胜。 (一)巴什博奕(Bash Game) 定义: 只有一 阅读全文
posted @ 2018-09-04 09:45 caomp 阅读(1192) 评论(0) 推荐(2)
摘要: 51Nod1256 乘法逆元 Description 给出2个数M和N(M include include include include include include include include include include include include include include 阅读全文
posted @ 2018-08-30 09:48 caomp 阅读(217) 评论(0) 推荐(0)
摘要: HihoCoder1473 : 小Ho的强迫症 描述 小Ho在一条笔直的街道上散步。街道上铺着长度为L的石板,所以每隔L距离就有一条石板连接的缝隙,如下图所示。 小Ho在散步的时候有奇怪的强迫症,他不希望脚踩在石板的缝隙上。(如果小Ho一只脚的脚尖和脚跟分别处于一条缝隙的两侧,我们就认为他踩在了缝隙 阅读全文
posted @ 2018-08-30 09:44 caomp 阅读(119) 评论(0) 推荐(0)
摘要: 青蛙的约会 | Time Limit: 1000MS | | Memory Limit: 10000K | | | | | | Total Submissions: 129037 | | Accepted: 28227 | Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必 阅读全文
posted @ 2018-08-30 09:24 caomp 阅读(79) 评论(0) 推荐(0)
摘要: 51Nod1711 平均数 Description LYK有一个长度为n的序列a。 他最近在研究平均数。 他甚至想知道所有区间的平均数,但是区间数目实在太多了。 为了方便起见,你只要告诉他所有区间(n (n+1)/2个区间)中第k大的平均数就行了。 Input c++ pragma comment( 阅读全文
posted @ 2018-08-23 11:13 caomp 阅读(141) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页