摘要: 恢复内容开始 深度优先搜索DFS 一、简介 二、算法思想 优先访问最后一个被访问的顶点的未被访问的相邻结点(递归) DFS在访问图中某一 起始顶点v后,由v出发,访问它的任一邻接顶点w1; 再从w1出发,访问与w1邻接但还没有访问过的顶点w2;然后再从w2出发,进行类似的访问,... 如此进行下去, 阅读全文
posted @ 2020-10-21 16:37 liyou555 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 链接: https://blog.csdn.net/Aibiabcheng/article/details/76597297 https://blog.csdn.net/liuqiyao_01/article/details/9079611?utm_medium=distribute.pc_rele 阅读全文
posted @ 2020-10-08 15:27 liyou555 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 一、注意数的范围,int,long long int,不能确定就选最大的 二、当输入过多cin就很浪费时间,加上 ios::sync_with_stdio(false); 阅读全文
posted @ 2020-09-05 15:53 liyou555 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 解题思路: 寻找两个向量中相同位置的数,将其相乘,最后求和即可 (利用map查找) AC代码: #include<iostream> #include<map> using namespace std; int main() { //开始60分,运行超时 //提速,使cin与cout的速度与scan 阅读全文
posted @ 2020-09-05 15:50 liyou555 阅读(228) 评论(3) 推荐(0) 编辑
摘要: 简介 Quartus II design 是最高级和复杂的,用于system-on-a-programmable-chip (SOPC)的设计环境。 Quartus II design 提供完善的 timing closure 和 LogicLock™ 基于块的设计流程。Quartus II des 阅读全文
posted @ 2019-10-22 00:14 liyou555 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: Longest Ordered Subsequence Problem description A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric se 阅读全文
posted @ 2019-09-14 13:33 liyou555 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Sum Problem Description Consider the natural numbers from 1 to N. By associating to each number a sign (+ or -) and calculating the value of this expr 阅读全文
posted @ 2019-09-10 20:26 liyou555 阅读(175) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/web_csdn_share/article/details/79243308 阅读全文
posted @ 2019-08-26 11:10 liyou555 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 突然有一天,一个什么都菜的人忽然想当程序猿了,然后她就开通了github,这只是一个开始,差点成为了结尾,因为她不会用github,这是她的第一篇Blog,献给github 一、什么是Github GitHub是一个通过Git进行版本控制的软件源代码托管服务,由GitHub公司(曾称Logical 阅读全文
posted @ 2019-08-26 11:06 liyou555 阅读(364) 评论(0) 推荐(0) 编辑