随笔分类 -  数学

摘要:DescriptionFarmer John's N (1 ≤ N ≤ 10,000) cows are lined up to be milked in the evening. Each cow has a unique "grumpiness" level in the range 1...100,000. Since grumpy cows are more likely to damage FJ's milking equipment, FJ would like to reorder the cows in line so they are li 阅读全文
posted @ 2014-03-17 16:32 chen2013 阅读(290) 评论(0) 推荐(0)
摘要:DescriptionCompared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb in his ho... 阅读全文
posted @ 2014-03-13 11:35 chen2013 阅读(273) 评论(0) 推荐(0)
摘要:Description As we all know caterpillars love to eat leaves. Usually, a caterpillar sits on leaf, eats as much of it as it can (or wants), then stretch... 阅读全文
posted @ 2014-02-26 14:25 chen2013 阅读(418) 评论(0) 推荐(0)
摘要:描述In the game of Dungeons & Dragons, players often roll multi-sided dice to generate random numbers which determine the outcome of actions in the game. These dice come in various flavors and shapes, ranging from a 4-sided tetrahedron to a 20-sided isocahedron. The faces of an n-sided die, called 阅读全文
posted @ 2014-01-24 17:43 chen2013 阅读(274) 评论(0) 推荐(0)