- 博客(12)
- 收藏
- 关注
转载 Open the Lock
Now an emergent task for you is to open a password lock. The password is consisted of four digits. Each digit is numbered from 1 to 9. Each time, you can add or minus 1 to any digit. When add 1...
2019-03-10 12:06:00 126
转载 POJ - 2379 ACM Rank Table
ACM contests, like the one you are participating in, are hosted by the special software. That software, among other functions, preforms a job of accepting and evaluating teams' solutions (runs...
2019-02-28 20:46:00 169
转载 HDU1863---畅通工程
Problem Description 省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。 Input 测试输入包含若干测试用例。每个测试用例的第1行给出评估的道路条数 N、村庄数目M ...
2018-10-05 10:40:00 103
转载 Agri-Net
Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course. Farmer John ordered a h...
2018-09-23 14:03:00 88
转载 记事本+cmd编写运行简单的Java程序
第一步,使用笔记本编辑程序代码 用记事本编写的是java的源代码文件,里面的代码就是我们平时学习的java代码,生成的文件后缀是.txt,更改文本文档的后缀名为 .java。java文件是不能直接执行的,需要通过后续的编译等处理才能变为可执行的程序(注意文件名必须和类名相同)如果电脑没有显示后缀名的话需要对电脑进行一定的设置(见附一) 新建一个文本文件并重命名为 myProgram....
2018-09-02 23:55:00 329
转载 Is It A Tree? (并查集)
题目: A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the following properti...
2018-08-22 15:22:00 63
转载 X-Plosives (并查集)
题目: A secret service developed a new kind of explosive that attain its volatile property only when a specific association of products occurs. Each product is a mix of two different simple compou...
2018-08-20 09:31:00 158
转载 DZY Loves Chemistry (并查集)
题目: (????,最近净做并查集了还一道难的都不会) DZY loves chemistry, and he enjoys mixing chemicals. DZY has n chemicals, and m pairs of them will react. He wants to pour these chemicals into a test tube, and he nee...
2018-08-18 15:55:00 294
转载 HDU1272小希的迷宫 (并查集)
题目: 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个房间有且仅有一条路径可以相通(除非走了回头路)。小希现在把她的设计图...
2018-08-18 10:54:00 69
转载 The Suspects(并查集)
题目: Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best str...
2018-08-17 15:41:00 97
转载 POJ2524 Ubiquitous Religions(并查集)
题目: There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your un...
2018-08-17 10:57:00 97
转载 HDU 1856 More is better(并查集)
题目: Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course there are certain requirements. Mr Wang se...
2018-08-17 10:03:00 130
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人