摘要:
题目大意: N由 1到K的数组成,求这样的组成方式有多少种? Input A single line with two space-separated integers: N and K. Output A single line with a single integer that is the 阅读全文
posted @ 2016-09-01 17:55
Jason杰
阅读(165)
评论(0)
推荐(0)
摘要:
题目大意:某人有各种面值为ai的硬币ci个,问他能凑够1到m价格中的几个? Input The input contains several test cases. The first line of each test case contains two integers n(1<=n<=100) 阅读全文
posted @ 2016-09-01 17:42
Jason杰
阅读(226)
评论(0)
推荐(0)
摘要:
题目大意:一个字符串,用已知的字符把它变为回文串时,代价最小是多少?其中添加一个字符或删除一个字符都有相应代价。 Input Line 1: Two space-separated integers: N and M Line 2: This line contains exactly M char 阅读全文
posted @ 2016-09-01 17:15
Jason杰
阅读(230)
评论(0)
推荐(0)
摘要:
题目大意:一奶牛可以在一段时间内挤奶,挤完要休息一段时间。不同的时间段的量不一样。时间段不可以重叠,问做多能挤出多少奶? Input * Line 1: Three space-separated integers: N, M, and R* Lines 2..M+1: Line i+1 descr 阅读全文
posted @ 2016-09-01 17:07
Jason杰
阅读(337)
评论(0)
推荐(0)

浙公网安备 33010602011771号