STL
AK4TRl
这个作者很懒,什么都没留下…
展开
-
noip 2004 合并果子
合并果子 Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Description 现在有n堆果子,第i堆有ai个果子。现在要把这些果子合并成一堆,每次合并的代价是两堆果子的总果子数。求合并所有果子的最小代价。 Input原创 2015-05-12 20:29:38 · 564 阅读 · 0 评论 -
POJ 3253 Fence Repair
POJ 3253 - Fence Repair Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Description Farmer John wants to repair a small length of the fence around the past原创 2015-05-13 20:34:26 · 372 阅读 · 0 评论 -
1144: 组合的输出
Description 排列与组合是常用的数学方法,其中组合就是从n个元素中抽出r个元素(不分顺序且r Input 一行两个自然数n、r(1 Output 所有的组合,每一个组合占一行且其中的元素按由小到大的顺序排列,每个元素占三个字符的位置,所有的组合也按字典顺序。 Sample Input 5 3 对于STL排列函数next_perm原创 2015-05-11 20:05:50 · 441 阅读 · 0 评论