摘要: 题目大意:给你字符串,和一个数字N。让你在它所有子串中找存在至少N个不同字母的子串,求出个数。 1 #include<algorithm> 2 #include<cstdio> 3 #include<iostream> 4 #include<queue> 5 #include<vector> 6 # 阅读全文
posted @ 2020-03-06 21:56 programmer_w 阅读(169) 评论(0) 推荐(0)
摘要: 题意:从起点1到另外所有点的距离之和加上,另外所有点到1的距离之和,来去的花费不同。 两次Dijkstra,第二次反方向时,改变始末位置便可套用之前的Dijkstra模板。 1 #include<cstdio> 2 #include<queue> 3 #include<algorithm> 4 #i 阅读全文
posted @ 2020-02-29 22:39 programmer_w 阅读(143) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include<stack> 5 #include<vector> 6 using namespace std; 7 int main() 8 { 9 char str 阅读全文
posted @ 2020-02-28 21:57 programmer_w 阅读(143) 评论(0) 推荐(0)
摘要: 1 #include<cstdio> 2 #include<vector> 3 #include<algorithm> 4 #include<iostream> 5 #include<cstring> 6 using namespace std; 7 typedef long long LL; 8 阅读全文
posted @ 2020-02-21 13:42 programmer_w 阅读(0) 评论(0) 推荐(0)
摘要: A - 敌兵布阵 HDU - 1166 1 #include <iostream> 2 #include <map> 3 #include <string> 4 #include<algorithm> 5 #include<vector> 6 #include<cmath> 7 #include<q 阅读全文
posted @ 2020-02-19 17:00 programmer_w 阅读(0) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/wifePI/p/12269094.html 阅读全文
posted @ 2020-02-19 16:53 programmer_w 阅读(1) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/zhang-Kelly/p/12283942.html 阅读全文
posted @ 2020-02-19 16:51 programmer_w 阅读(0) 评论(0) 推荐(0)
摘要: A - 畅通工程续 HDU - 1874 spfa 1 #include <iostream> 2 #include <map> 3 #include <string> 4 #include<algorithm> 5 #include<vector> 6 #include<cmath> 7 #inc 阅读全文
posted @ 2020-02-19 16:34 programmer_w 阅读(1) 评论(0) 推荐(0)
摘要: B - Element Swapping ZOJ - 4101 https://blog.csdn.net/qq_41700151/article/details/89646207 E - Sequence in the Pocket ZOJ - 4104 题意:t 组数据,每组给出 n 个数,每次 阅读全文
posted @ 2020-02-15 22:43 programmer_w 阅读(0) 评论(0) 推荐(0)
摘要: A - Peak ZOJ - 4024 题目大意:判断数列是否是先递增后递减数列 从两端分别以递增和递减判断 看第一个不满足递增或递减的数是否相等并且没越界就可以了 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #incl 阅读全文
posted @ 2020-02-14 22:26 programmer_w 阅读(2) 评论(0) 推荐(0)