![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UVa-AOAPC
文章平均质量分 61
星琳之梦
这个作者很懒,什么都没留下…
展开
-
UVa679 小球下落(树)
题目地址:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=620给下落的深度和小球个数,小球依次下落,结点有个开关,每到一个结点,开关关向左,开向右一开始想到了简单模拟,结果超时…#include #include原创 2016-03-17 10:49:08 · 1750 阅读 · 0 评论 -
UVa1586 分子量+hdu1274的3ab(b)
数组练习题这道题让人想起了河南省赛,改进啊…然而这题2007年就有了…题目解法参考hdu1274 【输出3(ab2(cd))->>abcdcdabcdcdabcdcd】网上大神的解法写了该题。链接和题解在最后这道题没有括号,每个英文后面或许没有,或许为数字。先判断字母,然后判断应该是几个#include #include #include #include us原创 2016-03-07 21:28:01 · 617 阅读 · 0 评论 -
UVa572油田(连通块个数)
UVa572 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=513也就是求联通块个数运用dfs#include #include #define maxn 105char map[maxn][maxn];int vis[ma原创 2016-03-17 11:04:03 · 1289 阅读 · 0 评论 -
UVa1225 Digit Counting
本题不难,数组循环,简单打表自己太水,开始竟然忽略了(n-1)和n的关系,n的各个数字出现情况只需要在n-1的情况下再考虑n就好了1225 - Digit CountingTime limit: 3.000 seconds#include #include #include #define maxn原创 2016-03-09 08:43:33 · 222 阅读 · 0 评论 -
UVa 455 Periodic Strings【最小循环子串】
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string "abcabcabcabc" has period 3, since it原创 2016-03-09 09:29:38 · 958 阅读 · 0 评论 -
UVa524素数环
题目位置:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=465 Prime Ring Problem A ring is composed of n (even number) circl原创 2016-04-02 21:25:38 · 412 阅读 · 0 评论 -
UVa489 Hangman Judge
题目https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=832&page=show_problem&problem=430刽子手游戏。题目较长,理解以后很容易…就是猜词游戏,输入电脑给的字符串题目和玩家猜测的单词,如果答案中有这个单词,则所有的该单词都会显示出来,有7次机会,猜曾经猜对原创 2016-03-11 09:00:18 · 356 阅读 · 0 评论 -
简单枚举UVa725-division (abcde / fghij = n)
题目位置:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=666Write a program that finds and displays all pairs of 5-digit numbers that between them use t原创 2016-03-14 15:48:54 · 546 阅读 · 0 评论 -
UVA11248【最大流最小割入门】
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2205给定一个有向网络,每条边均有一个容量。问是否存在一个从点1->n,流量为C的流。如果不存在,是否可以恰好修改一条弧的容量,使得这样的流存在? 第一行输入 N ,E, C原创 2016-06-01 11:26:27 · 455 阅读 · 0 评论