Mr. Fib is a mathematics teacher of a primary school. In the next lesson, he is planning to teach children how to add numbers up. Before the class, he ...
分类:
其他好文 时间:
2018-03-10 22:13:18
阅读次数:
361
You are given N sets, the i-th set (represent by S(i)) have C(i) element (Here "set" isn't entirely the same as the "set" defined in mathematics, and ...
分类:
其他好文 时间:
2018-03-10 12:07:30
阅读次数:
214
Discription LCM is an abbreviation used for Least Common Multiple in Mathematics. We say LCM (a, b, c) = L if and only if L is the least integer which ...
分类:
其他好文 时间:
2018-03-08 20:20:29
阅读次数:
166
Hassan is in trouble. His mathematics teacher has given him a very difficult problem called 5-sum. Please help him. The 5-sum problem is defined as fo ...
分类:
其他好文 时间:
2018-03-06 00:53:14
阅读次数:
192
题目链接 Codeforces Round #465 (Div. 2) Problem E 题意 给定一个表达式,然后用$P$个加号和$M$个减号填充所有的问号(保证问号个数等于$P + M$) 求可以形成的表达式的最大值。 先把表达式转成一棵树,然后在树上DP。 题目保证了$min(P, M) < ...
分类:
其他好文 时间:
2018-03-01 00:33:50
阅读次数:
159
The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreticians ...
分类:
其他好文 时间:
2018-02-27 23:41:52
阅读次数:
216
具体推导详见 Mathematics.for.3D.Game.Programming.and.Computer.Graphics.3Ed 的第十五章 布料和流体模拟 ...
分类:
其他好文 时间:
2018-02-24 19:27:33
阅读次数:
144
前言 "这" 是一道cf的比赛题.. 比赛的时候C题因为自己加了一个很显然不对的特判WA了7次但找不出原因就弃疗了... 然后就想划水, 但是只做了AB又不太好... 估计rating会掉惨 (然而事实证明rating一点没变) 就去看看别的题,, 但是英语不好, 看题要看半天, 看看这个E题题目名 ...
分类:
其他好文 时间:
2018-02-22 17:09:53
阅读次数:
246
1.Combinatorial Mathematics 1.1 Bell Number: $B_n$表示元素个数为n的集合划分成若干个不相交集合的方案数 $B_{n + 1} = \sum_{k = 0}^n C(n,k)B_k$ 1.2 Catalan Number: 递推公式: $h_1 = 1 ...
分类:
其他好文 时间:
2018-02-21 00:22:12
阅读次数:
533
Description Little Y finds there is a very interesting formula in mathematics: XY mod Z = K Given X, Y, Z, we all know how to figure out K fast. Howev ...
分类:
其他好文 时间:
2018-02-04 16:42:11
阅读次数:
155