
----组合数学
文章平均质量分 79
_Occult_
物語が始まった
展开
-
HDU 5201 The Monkey King
Problem DescriptionAs everyone known, The Monkey King is Son Goku. He and his offspring live in Mountain of Flowers and Fruits. One day, his sons get n peaches. And there are mmonkeys (includi原创 2015-04-18 14:50:42 · 580 阅读 · 0 评论 -
HDU 4869 Turn the pokers
During summer vacation,Alice stay at home for a long time, with nothing to do. She went out and bought m pokers, tending to play poker. But she hated the traditional gameplay. She wants to change. She原创 2017-02-21 21:37:00 · 325 阅读 · 0 评论 -
ZOJ 3604 Tunnel Network
Country Far-Far-Away is a big country with N cities. But it is now under a civil war. The rebel uses the ancient tunnel network which connects all N cities with N-1 inter-city tunnels for transportati原创 2017-02-19 17:58:19 · 356 阅读 · 0 评论 -
FZU 2238 Daxia & Wzc's problem
Daxia在2016年5月期间去瑞士度蜜月,顺便拜访了Wzc,Wzc给他出了一个问题:Wzc给Daxia等差数列A(0),告诉Daxia首项a和公差d;首先让Daxia求出数列A(0)前n项和,得到新数列A(1);然后让Daxia求出数列A(1)前n项和,得到新数列A(2);接着让Daxia求出数列A(2)前n项和,得到新数列A(3);...最后让D原创 2016-12-16 15:35:53 · 291 阅读 · 0 评论 -
HDU 5673 Robot
Problem DescriptionThere is a robot on the origin point of an axis.Every second, the robot can move right one unit length or do nothing.If the robot is on the right of origin point,it can also m原创 2016-04-22 23:19:47 · 621 阅读 · 0 评论 -
HDU 5446 Unknown Treasure
Problem DescriptionOn the way to the next secret treasure hiding place, the mathematician discovered a cave unknown to the map. The mathematician entered the cave because it is there. Somewhere de原创 2015-09-16 13:36:54 · 401 阅读 · 0 评论 -
HDU 5651 xiaoxin juju needs help
Problem DescriptionAs we all known, xiaoxin is a brilliant coder. He knew **palindromic** strings when he was only a six grade student at elementry school.This summer he was working at Tencent原创 2016-03-26 23:05:53 · 508 阅读 · 0 评论 -
FZU 2103 Bin & Jing in wonderland
DescriptionBin has a dream that he and Jing are both in a wonderland full of beautiful gifts. Bin wants to choose some gifts for Jing to get in her good graces.There are N different gifts in t原创 2016-03-10 19:41:53 · 479 阅读 · 0 评论 -
HUST 1374 Just Another Game
DescriptionHH and LL always play games together, however, LL won every time~~.That make HH very unhappy, so this time HH is designing a new game for beating LL. Here comes the rule of the game: 1)原创 2016-02-23 22:35:22 · 298 阅读 · 0 评论 -
ZOJ 3924 Musical Notes
DescriptionBesides his skills of playing Hearthstone, Bob is also insterested in learning piano in order to make himself more charming, of course, to Alice.Now, Bob had transcribed a musical sco原创 2016-03-08 18:22:20 · 558 阅读 · 0 评论 -
HDU 5495 LCS
Problem DescriptionYou are given two sequence {a_1, a_2, ..., a_n}{a1,a2,...,an} and {b_1,b_2, ... ,b_n}{b1,b2,...,bn}. Both sequences are permutation of {1,2,...,n}{1,2,..原创 2015-10-05 17:27:25 · 684 阅读 · 0 评论 -
ACdream 1412 2-3 Trees
Description 2-3 tree is an elegant data structure invented by John Hopcroft. It is designed to implement the same functionality as the binary search tree. 2-3 tree is an ordered rooted tree原创 2015-07-18 21:28:08 · 554 阅读 · 0 评论 -
HDU 4651 Partition
Problem DescriptionHow many ways can the numbers 1 to 15 be added together to make 15? The technical term for what you are asking is the "number of partition" which is often called P(n). A partiti原创 2015-05-19 21:07:07 · 493 阅读 · 0 评论 -
HDU 4658 Integer Partition
Problem DescriptionGiven n, k, calculate the number of different (unordered) partitions of n such that no part is repeated k or more times. InputFirst line, number of test cases,原创 2015-05-19 21:31:07 · 474 阅读 · 0 评论 -
HDU 4873 ZCC Loves Intersection
After beats all opponents in 3-dimension-world OI, ZCC feels bored and sets about going to other universes. In a universe with D dimension(s), ZCC finds D segments floating in the air. To be more prec原创 2017-03-02 13:54:27 · 346 阅读 · 0 评论