贪心算法
算法 贪心算法
Water_Coder
正在学算法
展开
-
k-rounding
k-roundingFor a given positive integer n denote its k-rounding as the minimum positive integer x, such that x ends with k or more zeros in base 10 and is divisible by n.For example, 4-rounding of 37...原创 2020-02-04 16:53:10 · 284 阅读 · 0 评论 -
River Hopscotch(二分+贪心)
River HopscotchEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight...原创 2020-02-28 20:56:13 · 274 阅读 · 0 评论 -
Tian Ji -- The Horse Racing(田忌赛马)/贪心算法
Tian Ji – The Horse Racing(田忌赛马)田忌赛马的故事(可以直接看题)Here is a famous story in Chinese history.“That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play hor...原创 2019-11-22 17:20:20 · 1165 阅读 · 0 评论