Description 问题的描述以及输入输出的样例可以看这里:链接 思路 虽然 DISCUSS 中总有人说水题,但是我觉得这道题的质量可以 (或许我比较弱ORZ ,在做过的 DP 题里算 medium 难度。 题目的意思是给你一个主串和一堆子串,需要你将子串和主串完全匹配上,在匹配过程中可以删除主 ...
分类:
其他好文 时间:
2018-02-05 21:52:55
阅读次数:
161
POJ 2184 Cow Exhibition Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14657 Accepted: 5950 Description "Fat and docile, big and dumb, the ...
分类:
其他好文 时间:
2018-02-04 22:41:17
阅读次数:
209
P1821 [USACO07FEB]银牛派对Silver Cow Party P1821 [USACO07FEB]银牛派对Silver Cow Party P1821 [USACO07FEB]银牛派对Silver Cow Party 题目描述 One cow from each of N farms ...
分类:
其他好文 时间:
2018-02-04 15:37:36
阅读次数:
166
这是一道用队列实现的BFS基础搜索题,学长给我们加这道题主要是让我们联系数据结构里面的队列,话不多说看代码吧。 #include <stdio.h> #include <string.h> #include <math.h> #include <algorithm> #include <queue> ...
分类:
其他好文 时间:
2018-02-04 00:35:13
阅读次数:
171
农夫在x位置,下一秒可以到x-1, x+1, 2x,问最少多少步可以到k *解法:最少步数bfs 要注意的细节蛮多的,写在注释里了 #include <iostream> #include <cstdio> #include <cstring> #include <queue> using name ...
分类:
其他好文 时间:
2018-02-03 19:54:09
阅读次数:
157
题目描述 Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. Farmer John has cooked fabu ...
分类:
其他好文 时间:
2018-02-03 15:57:26
阅读次数:
138
cow按st排序 stall按ed排序 其实stall里的st并不用维护,因为cow已经关于st自然有序 ...
分类:
其他好文 时间:
2018-02-02 17:08:39
阅读次数:
157
【题解】 最短路裸题。。 本题要求出每个点到终点走最短路来回的距离,因此我们先跑一遍最短路得出每个点到终点的最短距离,然后把边反向再跑一遍最短路,两次结果之和即是答案。 ...
分类:
其他好文 时间:
2018-02-02 14:10:24
阅读次数:
102
【题解】 弗洛伊德。更新距离的时候把$f[i][j]=min(f[i][j],f[i][k]+f[k][j])$改为$f[i][j]=min(f[i][j],max(f[i][k],f[k][j]))$. ...
分类:
其他好文 时间:
2018-02-02 11:56:49
阅读次数:
194
1.查看KVM虚拟机配置文件
kvm默认配置文件位置:
/etc/libvirt/qemu

2.启动与关闭
#显示正在运行的虚拟机
分类:
其他好文 时间:
2018-02-02 11:28:51
阅读次数:
190