摘要: 模拟题,用链表来进行模拟 阅读全文
posted @ 2018-04-08 20:40 ouyang_wsgwz 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题意: 第一类物品的价值为k1,第二类物品价值为k2,背包的体积是 c ,第一类物品有n 个,每个体积为S11,S12,S13,S14.....S1n ; 第二类物品有 m 个,每个体积为 S21,S22,S23,S24.......S2m; 每次装入物品时,得到的价值是 剩余背包体积*该类物品的价 阅读全文
posted @ 2018-04-08 20:27 ouyang_wsgwz 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 首先只需要 import time (典型的,标准的python库的使用方法) 主要包括三类函数 ——时间获取:time() , ctime() , gmtime() ——时间格式化: strftime(), strptime() ——程序计时:sleep(), perf_counter() 1.时 阅读全文
posted @ 2018-04-08 10:51 ouyang_wsgwz 阅读(271) 评论(0) 推荐(0) 编辑