基础数学
Chook_lxk
你前程有在,但须澄心猛省,不可自甘堕落。
展开
-
HDU - 5858 Hard problem(数学)
点击打开题目链接 Hard problem Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 497Accepted Submission(s): 326 Problem Description c原创 2017-04-09 19:42:18 · 691 阅读 · 0 评论 -
UVA - 11300 Spreading the Wealth(公式推导+中位数)
点击打开题目链接 Spreading the WealthDescriptionA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted原创 2017-05-13 10:20:12 · 1000 阅读 · 0 评论 -
HDU - 4422 The Little Girl who Picks Mushrooms(数学)
点击打开题目链接 The Little Girl who Picks Mushrooms Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2885Accepted Submission(s): 937原创 2017-07-24 21:04:37 · 651 阅读 · 0 评论 -
UVA - 11181 Probability|Given(条件概率+dfs枚举组合)
点击打开题目链接 N friends go to the local super market together. The probability of their buying something from themarket is p1, p2, p3, . . . , pN respectively. After their marketing is finished you are gi原创 2017-07-27 10:14:02 · 564 阅读 · 0 评论 -
算法实现题 1-1 统计数字问题
统计数字问题 问题描述: 给出n,遍历1~n,统计每个数字的出现次数,没有前导0(1 <= n <= 1e9)。 思路: 数据范围太大,所以不能暴力。 一个n位数,从n个0到n个9一共10^n个数。在这n个数中,0~9出现次数相同(加上前导0),设为f(n). 当n = 1时, f(n) = 1; 当n > 1时,f(n) = 10 * f(n-1) + 10^(n...原创 2018-03-14 19:25:19 · 3560 阅读 · 5 评论