5407专题

[置顶]LCM性质 + 组合数 - HDU 5407 CRB and Candies

CRB and Candies Problem's Link  Mean:  给定一个数n,求LCM(C(n,0),C(n,1),C(n,2)...C(n,n))的值,(n<=1e6). analyse: 很有趣的一道数论题! 看了下网上别人的做法,什么Kummer定理我还真没听说过,仔细研究一下那个鬼定理真是涨姿势了! 然而这题我并不是用Kummer那货搞的(w

2015 Multi-University Training Contest 10 (hdu 5407 CRB and Candies)

Problem Description CRB has N different candies. He is going to eat K candies. He wonders how many combinations he can select. Can you answer his question for all K(0 ≤ K ≤ N)? CRB is too hungry to ch