![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uva
文章平均质量分 78
「已注销」
这个作者很懒,什么都没留下…
展开
-
uva 10369 - Arctic Network(求最小生成树的第k小边)
Arctic Network(求最小生成树的第k小边)Problem C: Arctic NetworkThe Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication technolo原创 2017-10-23 19:05:57 · 288 阅读 · 0 评论 -
uva572 Oil Deposits
Oil Deposits输入一个m行n列的字符矩阵,统计字符“@”组成多少个八连块。如果两个字符“@”所在的格子相邻(横、竖或者对角线方向),就说它们属于同一个八连块。Sample Input1 1 * 3 5 *@*@* **@** *@*@* 1 8 @@****@* 5 5 ****@ *@@*@ *@**@ @@@*@ @@*原创 2017-10-25 13:45:08 · 181 阅读 · 0 评论 -
POJ1962、uva3027 Corporative Network
POJ1962:Corporative Network(并查集)DescriptionA very big corporation is developing its corporative network. In the beginning each of the N enterprises of the corporation, numerated from 1 to N, org原创 2017-10-25 14:16:36 · 277 阅读 · 0 评论 -
uva1160 X-Plosives
UVA 1160 X-Plosives 题意: 现在手上有一些化合物,每个化合物都不相同且由两个不同整数构成,当你手上存在这种情况时: 手上有至少N(N>2)个化合物且其中有N个化合物正好包含N个不同的整数(即这N个整数每个出现了2次)。那么此时化合物不稳定。比如你有化合物(1,2),(2,3),(3,1)那么就是不稳定的,但是你如果只有(1,2),(2原创 2017-10-26 19:28:42 · 671 阅读 · 0 评论 -
UVA 10391 Compound Words
UVA 10391 Compound WordsYou are to find all the two-word compound words in a dictionary. A two-word compound word is aword in the dictionary that is the concatenation of exactly two other words i原创 2017-10-26 19:40:05 · 238 阅读 · 0 评论 -
UVA - 10382- Watering Grass
uva 10382 - Watering Grass(区域覆盖问题) Sample Input8 20 25 34 11 27 210 213 316 219 43 10 13 59 36 13 10 15 31 19 1Sample Output62-1题目大意:有一块草坪,长为l,宽为w,在它原创 2017-10-29 09:16:14 · 286 阅读 · 0 评论 -
UVA 12034 Race
RaceDisky and Sooma, two of the biggest mega minds of Bangladesh went to a far country. They ate, coded and wandered around, even in their holidays. They passed several months in this way. But every原创 2017-11-03 19:55:41 · 397 阅读 · 0 评论 -
uva1395 Slim Span
Slim Span #include#include#include#include#define N 100090#define MAXN 99999999using namespace std;int n,m,t=0;int pre[N],used[N];struct node{ int st,ed,val;}e[N];void原创 2017-10-23 19:06:45 · 306 阅读 · 0 评论 -
uva6437 Power Plant
#include#include#include#include#define N 100090using namespace std;int n,m,t;int pre[N];struct node{ int st,ed,val;}e[N];void init(){ for(int i=0;i { p原创 2017-10-23 19:07:22 · 296 阅读 · 0 评论