一、截取的样本 top - 23:21:23 up 10:47, 1 user, load average: 0.00, 0.01, 0.05 # 系统基本信息 Tasks: 128 total, 1 running, 127 sleeping, 0 stopped, 0 zombie # 进程总信 ...
分类:
其他好文 时间:
2020-02-18 09:56:14
阅读次数:
65
PAT 甲级 Advanced 1079 Total Sales of Supply Chain (25) [DFS,BFS,树的遍历] ...
分类:
其他好文 时间:
2020-02-17 20:01:01
阅读次数:
66
一、技术总结 1. 开始拿到这一题,知道用DFS但是不知道怎么设置递归式和递归边界,一直在想,其实就是该节点的子结点为0时就是终止时,递归式就是每次递归后,对于深度depth加一。 2. 还有一点就是怎么解决所有费用相加的问题,开始还在想,用一个数组存储所有路径然后再,在遍历,是在太笨了,可以直接定 ...
分类:
其他好文 时间:
2020-02-17 15:47:52
阅读次数:
47
1.复习代码 .复习代码 LC 322 322. Coin Change Medium 2970100Add to ListShare You are given coins of different denominations and a total amount of money amount. ...
分类:
其他好文 时间:
2020-02-14 10:53:04
阅读次数:
94
报错: UnboundLocalError: local variable 'total_page' referenced before assignment news_list = [] # 修改 total_page =1 current_page = 1 try: paginate = use ...
分类:
编程语言 时间:
2020-02-13 09:39:40
阅读次数:
86
Heavy Transportation Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 65250 Accepted: 16053 Description Background Hugo Heavy is happy. Afte ...
分类:
其他好文 时间:
2020-02-09 23:46:08
阅读次数:
98
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 515227 Accepted Submission(s): 98635 Problem Desc ...
分类:
其他好文 时间:
2020-02-09 16:43:31
阅读次数:
61
食物链 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 113506 Accepted: 34507 Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个 ...
分类:
其他好文 时间:
2020-02-08 09:25:12
阅读次数:
84
/** * 获奖记录 */public function history(){ $page = max(1,$_GET['page']);//当前页 if(isset($_GET['page_total']) && $page > $_GET['page_total']) $page = $_GET ...
分类:
Web程序 时间:
2020-02-07 14:32:55
阅读次数:
87
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = ...
分类:
其他好文 时间:
2020-02-07 00:48:28
阅读次数:
65