![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UVa
文章平均质量分 79
xiaoyulunUSC
这个作者很懒,什么都没留下…
展开
-
UVa 11464 Even Parity
We have a grid of size N x N. Each cell of the grid initially contains a zero(0) or a one(1). The parity of a cell is the number of 1s surrounding that cell. A cell is surrounded by at most 4 cells原创 2014-09-09 16:06:28 · 501 阅读 · 0 评论 -
UVa 11995 I Can Guess the Data Structure!
I Can Guess the Data Structure!There is a bag-like data structure, supporting two operations:1 xThrow an element x into the bag.2Take out an element from the bag.Given a sequence of oper原创 2014-09-02 00:10:07 · 481 阅读 · 0 评论 -
UVa 11292 Dragon of Loowater
Problem C: The Dragon of LoowaterOnce upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.The shores of Rellau Creek in central Loowater had always been a prime原创 2014-09-01 19:53:04 · 461 阅读 · 0 评论 -
Uva 10305 Ordering Tasks(拓扑排序)
/*Kahn 算法 复杂度:O(E+V)L← Empty list that will contain the sorted elementsS ← Set of all nodes with no incoming edgeswhile S is non-empty do remove a node n from S insert n into L for eac原创 2014-11-08 15:50:50 · 541 阅读 · 0 评论