组合
文章平均质量分 73
DTL66
细节决定成败
展开
-
LIGHTOJ 1045 - Digits of Factorial 【阶乘取对数】
1045 - Digits of Factorial Time Limit: 2 second(s) Memory Limit: 32 MB Description Factorial of an integer is defined by the following function f(0) = 1 f(n) = f(n - 1) * n, if(n > 0) So, fac原创 2016-08-23 21:02:57 · 890 阅读 · 0 评论 -
LIGHT OJ-1104 Birthday Paradox 【组合】
1104 - Birthday ParadoxTime Limit: 2 second(s) Memory Limit: 32 MBSometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party原创 2016-08-13 18:20:32 · 297 阅读 · 0 评论 -
HPU 1010: QAQ的序列价值 【状态压缩】
1010: QAQ的序列价值 时间限制: 3 Sec 内存限制: 128 MB 提交: 60 解决: 13 [提交][状态][讨论版] 题目描述 QAQ有一个序列,元素个数有NN个。 他认为一个序列的价值的是:该序列中不同元素之和。 比如说:序列(1,1,2,2)(1,1,2,2)价值为33。 现在QAQ想知道所有子序列的价值之和。 输入 第原创 2016-10-30 14:24:55 · 505 阅读 · 0 评论 -
HDU 1568 Fibonacci 【FIB通项公式+log10取前N为位数】
Fibonacci Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4880 Accepted Submission(s): 2262 Problem Description 2007年到来了。经原创 2016-11-10 23:02:12 · 444 阅读 · 0 评论 -
UVA - 10943 How do you add?【组合数取余(递推)】
Larry is very bad at math — he usually uses a calculator, whichworked well throughout college. Unforunately, he is now struck ina deserted island with his good buddy Ryan after a snowboardingaccident.原创 2016-11-22 14:52:05 · 455 阅读 · 0 评论