海岛Blog

海是无垠的,岛在海中是独立的,有一片自己的天空

AOJ2170 Marked Ancestor【并查集】

Marked Ancestor Aizu - 2170 Problem F:You are given a tree T that consists of N nodes. Each node is numbered from 1 to N, and node 1 is always the ro...

2018-04-30 14:51:00

阅读数:91

评论数:1

POJ2299 ZOJ2386 UVA10810 Ultra-QuickSort【逆序偶+归并排序】

Ultra-QuickSortTime Limit: 7000MS Memory Limit: 65536KTotal Submissions: 67664 Accepted: 25336DescriptionIn this problem, you have to analyze a parti...

2018-04-30 02:57:06

阅读数:72

评论数:0

ZOJ3210 A Stack or A Queue?【序列】

A Stack or A Queue?Time Limit: 1 Second      Memory Limit: 32768 KBDo you know stack and queue? They're both important data structures. A stack is a ...

2018-04-29 23:37:42

阅读数:58

评论数:0

POJ4001 HDU4121 UVA1589 UVALive5829 Xiangqi【模拟+回溯】

XiangqiTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1791 Accepted: 444DescriptionXiangqi is one of the most popular two-player board gam...

2018-04-29 06:40:32

阅读数:145

评论数:0

UVA10196 Check The Check【模拟+回溯】

Your task is to write a program that reads a chess board configuration and answers if there’s a king under attack (i.e. “in check”). A king is in che...

2018-04-28 00:02:09

阅读数:101

评论数:0

POJ2236 Wireless Network【并查集】

Wireless NetworkTime Limit: 10000MS Memory Limit: 65536KTotal Submissions: 35269 Accepted: 14596DescriptionAn earthquake takes place in Southeast Asi...

2018-04-25 23:02:57

阅读数:163

评论数:2

POJ1988 Cube Stacking【并查集】

Cube StackingTime Limit: 2000MS Memory Limit: 30000KTotal Submissions: 27031 Accepted: 9478Case Time Limit: 1000MSDescriptionFarmer John and Betsy ar...

2018-04-25 22:04:42

阅读数:99

评论数:0

POJ1703 Find them, Catch them【并查集】

Find them, Catch themTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 50328 Accepted: 15453DescriptionThe police office in Tadu City decides...

2018-04-25 20:22:15

阅读数:76

评论数:0

HDU3117 Fibonacci Numbers【Fibonacci数列】

Fibonacci NumbersTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2897    Accepted Submission(...

2018-04-25 11:48:51

阅读数:54

评论数:0

UVA10579 Fibonacci Numbers【大数】

A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1.f(1) = 1, f(2) = 1, f(...

2018-04-25 11:11:01

阅读数:83

评论数:0

UVALive6222 Unhappy Numbers【数学】(RE)

Numbers have feelings too! For any positive integer, take the sum of the squares of each of its digits, and add them together. Take the result, and d...

2018-04-25 09:07:31

阅读数:144

评论数:0

UVALive8091 Happy Number【数学】

Consider the following function f defined for any natural number n:f(n) is the number obtained by summing up the squares of the digits of n in decima...

2018-04-25 06:48:43

阅读数:69

评论数:0

UVA10591 Happy Number【数学】

Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the squares of the digits of ...

2018-04-25 06:32:23

阅读数:67

评论数:0

UVA623 500!【百万进制/10^15进制】

In these days you can more and more often happen to see programs which perform some useful calculations being executed rather then trivial screen sav...

2018-04-23 08:33:56

阅读数:208

评论数:0

HDU1198 ZOJ2412 Farm Irrigation【并查集】

Farm IrrigationTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11022    Accepted Submission(s...

2018-04-21 20:50:38

阅读数:104

评论数:0

POJ2492 HDU1829 A Bug's Life【并查集】

A Bug's LifeTime Limit: 10000MS Memory Limit: 65536KTotal Submissions: 41537 Accepted: 13504DescriptionBackground Professor Hopper is researching the...

2018-04-21 02:17:33

阅读数:75

评论数:0

UVA793 UVALive5289 Network Connections【并查集】

Bob, who is a network administrator, supervises a network of computers. He is keeping a log connections between the computers in the network. Each co...

2018-04-20 08:48:40

阅读数:58

评论数:0

UVA10608 Friends【并查集】

There is a town with N citizens. It is known that some pairs of people are friends. According to the famous saying that “The friends of my friends ar...

2018-04-20 00:23:48

阅读数:86

评论数:0

POJ2524 UVA10583 Ubiquitous Religions【并查集】

Ubiquitous ReligionsTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 38946 Accepted: 18569DescriptionThere are so many different religions i...

2018-04-19 18:53:48

阅读数:63

评论数:0

UVA10158 War【并查集】

A war is being lead between two countries, A and B. As a loyal citizen of C, you decide to help your countrys espionage by attending the peace-talks ...

2018-04-19 18:23:37

阅读数:62

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭