上一页 1 ··· 5 6 7 8 9 10 11 下一页
2017年8月20日
摘要: 1、冒泡排序 最初在学c语言时,老师就教的这个排序算法,原理比较简单:从数组下标为0处开始遍历,相邻之间进行比较,若a[i]>a[i+1],则exchange(a[i],a[i+1]),当然也可以将小的往后传递,将此过程不断进行,那么最后数组就有序了。 要点:(1)每遍历一遍,末尾就得到一个最大值( 阅读全文
posted @ 2017-08-20 17:08 几缕清风依旧 阅读(7838) 评论(0) 推荐(0) 编辑
2016年10月13日
摘要: E. Thief in a Shop time limit per test 5 seconds memory limit per test 512 megabytes input standard input output standard output E. Thief in a Shop ti 阅读全文
posted @ 2016-10-13 18:36 几缕清风依旧 阅读(298) 评论(0) 推荐(0) 编辑
2016年10月3日
摘要: 一笔画问题 时间限制:3000 ms | 内存限制:65535 KB 难度:4 一笔画问题 时间限制:3000 ms | 内存限制:65535 KB 难度:4 zyc从小就比较喜欢玩一些小游戏,其中就包括画一笔画,他想请你帮他写一个程序,判断一个图是否能够用一笔画下来。 规定,所有的边都只能画一次, 阅读全文
posted @ 2016-10-03 15:33 几缕清风依旧 阅读(549) 评论(0) 推荐(0) 编辑
2016年9月27日
摘要: Ollivanders: Makers of Fine Wands since 382 BC. Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 阅读全文
posted @ 2016-09-27 19:53 几缕清风依旧 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 过山车 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19208 Accepted Submission(s): 8393 Problem De 阅读全文
posted @ 2016-09-27 19:48 几缕清风依旧 阅读(187) 评论(0) 推荐(0) 编辑
2016年9月25日
摘要: 二分图的最大匹配、完美匹配和匈牙利算法 这篇文章讲无权二分图(unweighted bipartite graph)的最大匹配(maximum matching)和完美匹配(perfect matching),以及用于求解匹配的匈牙利算法(Hungarian Algorithm);不讲带权二分图的最 阅读全文
posted @ 2016-09-25 16:33 几缕清风依旧 阅读(276) 评论(0) 推荐(0) 编辑
摘要: The Accomodation of Students Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5451 Accepted Submis 阅读全文
posted @ 2016-09-25 16:19 几缕清风依旧 阅读(398) 评论(0) 推荐(0) 编辑
2016年9月23日
摘要: C - NP-Hard Problem Crawling in process... Crawling failed Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practic 阅读全文
posted @ 2016-09-23 19:41 几缕清风依旧 阅读(1125) 评论(0) 推荐(0) 编辑
2016年9月21日
摘要: E - The Values You Can Make Description Pari wants to buy an expensive chocolate from Arya. She has n coins, the value of the i-th coin is ci. The pri 阅读全文
posted @ 2016-09-21 20:04 几缕清风依旧 阅读(564) 评论(0) 推荐(0) 编辑
摘要: C - NP-Hard Problem Crawling in process... Crawling failed Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u C - NP-Hard Problem D 阅读全文
posted @ 2016-09-21 18:49 几缕清风依旧 阅读(428) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页