。。。

导航

2017年8月26日 #

5972: 【递归入门】全排列

摘要: 题目描述 排列与组合是常用的数学方法。 先给一个正整数 ( 1 < = n < = 10 ) 例如n=3,所有组合,并且按字典序输出: 1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1 排列与组合是常用的数学方法。 先给一个正整数 ( 1 < = n < = 10 ) 例如n= 阅读全文

posted @ 2017-08-26 16:56 大学僧 阅读(205) 评论(0) 推荐(0) 编辑

51nod 1136 欧拉函数【数论】

摘要: 1136 欧拉函数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 1136 欧拉函数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 1136 欧拉函数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基 阅读全文

posted @ 2017-08-26 16:43 大学僧 阅读(111) 评论(0) 推荐(0) 编辑

【背包专题】G - Dividing hdu 1059【多重背包】

摘要: Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. Th 阅读全文

posted @ 2017-08-26 15:22 大学僧 阅读(99) 评论(0) 推荐(0) 编辑

【背包专题】I - 湫湫系列故事——减肥记I hdu4508【完全背包】

摘要: 对于吃货来说,过年最幸福的事就是吃了,没有之一! 但是对于女生来说,卡路里(热量)是天敌啊! 资深美女湫湫深谙“胖来如山倒,胖去如抽丝”的道理,所以她希望你能帮忙制定一个食谱,能使她吃得开心的同时,不会制造太多的天敌。 当然,为了方便你制作食谱,湫湫给了你每日食物清单,上面描述了当天她想吃的每种食物 阅读全文

posted @ 2017-08-26 14:30 大学僧 阅读(130) 评论(0) 推荐(0) 编辑

【背包专题】F - Ahui Writes Word hdu3732【01背包+二进制优化】

摘要: We all know that English is very important, so Ahui strive for this in order to learn more English words. To know that word has its value and complexi 阅读全文

posted @ 2017-08-26 11:50 大学僧 阅读(108) 评论(0) 推荐(0) 编辑