博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: 并查集:从入门到入土 2017-09-01 并查集一个神奇的算法 今天我们的s同学想学习一下并查集,就去找了几个水题刷一下... 入门题:P2839 畅通工程 就是求联通块的数量,-1就是答案。 #include<iostream> #include<cstdio> #include<cstdlib 阅读全文
posted @ 2017-09-01 20:29 ck666 阅读(973) 评论(0) 推荐(0) 编辑
摘要: Travelling Salesman Problem 2017-09-01 Problem Description Problem Description Teacher Mai is in a maze with n rows and m columns. There is a non-nega 阅读全文
posted @ 2017-09-01 11:43 ck666 阅读(122) 评论(0) 推荐(0) 编辑