海岛Blog

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

HDU1381 UVA1123 UVALive2680 Crazy Search【哈希函数】

Crazy SearchTime Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3149    Accepted Submission(s): ...

2018-05-31 11:37:58

阅读数:111

评论数:0

POJ2339 ZOJ1921 UVA10443 Rock, Scissors, Paper【Ad Hoc】

Rock, Scissors, PaperTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 4301 Accepted: 2490DescriptionBart's sister Lisa has created a new civ...

2018-05-30 10:32:08

阅读数:170

评论数:0

SPOJ-TEST Life, the Universe, and Everything【Ad Hoc】

Your program is to use the brute-force approach in order to find the Answer to Life, the Universe, and Everything. More precisely... rewrite small nu...

2018-05-30 08:00:33

阅读数:126

评论数:0

UVA10515 Powers Et Al.【数学+Ad Hoc】

计算n^m 的最后一位Finding the exponent of any number can be very troublesome as it grows exponentially. But in this problem you will have to do a very simpl...

2018-05-30 07:46:47

阅读数:112

评论数:0

POJ2361 ZOJ1908 UVA10363 Tic Tac Toe【Ad Hoc】

Tic Tac ToeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2385 Accepted: 903DescriptionTic Tac Toe is a child's game played on a 3 by 3 gr...

2018-05-29 08:52:05

阅读数:239

评论数:0

POJ3273 Monthly Expense【二分】

Monthly ExpenseTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 32920 Accepted: 12370DescriptionFarmer John is an astounding accounting wiza...

2018-05-29 07:52:03

阅读数:86

评论数:0

UVA10921 Find the Telephone【编码】

In some places is common to remember a phone number associating its digits to letters. In this way the expression “MY LOVE” means 69 5683. Of course ...

2018-05-25 05:13:03

阅读数:195

评论数:0

HDU4461 UVALive6379 The Power of Xiangqi【水题】

The Power of XiangqiTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2735    Accepted Submissi...

2018-05-14 17:42:15

阅读数:89

评论数:0

POJ1456 ZOJ1731 UVA1316 UVALive2757 Supermarket【贪心+并查集】

SupermarketTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 15260 Accepted: 6878DescriptionA supermarket has a set Prod of products on sale....

2018-05-11 10:44:51

阅读数:130

评论数:0

HDU3038 How Many Answers Are Wrong【加权并查集】

How Many Answers Are WrongTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12605    Accepted S...

2018-05-07 09:47:07

阅读数:129

评论数:0

POJ1611 ZOJ1789 UVA1197 UVALive2817 The Suspects【并查集】

The SuspectsTime Limit: 1000MS Memory Limit: 20000KTotal Submissions: 47596 Accepted: 22787DescriptionSevere acute respiratory syndrome (SARS), an at...

2018-05-07 07:27:22

阅读数:105

评论数:0

UVA10359 Tiling【大数+递推】

In how many ways can you tile a 2 × n rectangle by 2 × 1 or 2 × 2 tiles?  Here is a sample tiling of a 2 × 17 rectangle.InputInput is a sequence of l...

2018-05-06 15:30:26

阅读数:137

评论数:0

UVA10862 Connect the Cable Wires【大数+递推】

Asif is a student of East West University and he is currently working for the EWUISP to meet his relatively high tuition fees. One day, as a part of ...

2018-05-06 15:04:12

阅读数:147

评论数:1

UVA10334 Ray Through Glasses【大数】

Suppose we put two panes of glass back-to-back. How many ways an are there for light rays to pass through or be reflected after changing direction n ...

2018-05-05 18:23:00

阅读数:118

评论数:1

POJ2509 UVA10346 Peter's Smokes【模拟】

Peter's smokesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18097 Accepted: 7441DescriptionPeter has n cigarettes. He smokes them one by ...

2018-05-05 04:10:27

阅读数:146

评论数:0

UVA630 Anagrams (II)【排序+map】

One of the preferred kinds of entertainment of people living in final stages of XX century is filling in the crosswords. Almost every newspaper and m...

2018-05-04 22:55:59

阅读数:106

评论数:0

POJ2943 UVALive3524 The Cow Doctor【bitset+枚举】

The Cow DoctorTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 1601 Accepted: 528DescriptionTexas is the state having the largest number of ...

2018-05-04 21:41:09

阅读数:200

评论数:0

UVA10026 Shoemaker's Problem【贪心】

Shoemaker has N jobs (orders from customers) which he must make. Shoemaker can work on only one job in each day. For each i-th job, it is known the i...

2018-05-04 19:47:34

阅读数:125

评论数:0

UVA10800 Not That Kind of Graph【模拟+绘图】

“You know, it’s all very sweet, stealing from therich, selling to the poor...”Jose Molina, "Firefly."  Your task is to graph the pr...

2018-05-04 15:44:21

阅读数:103

评论数:0

UVA10922 2 the 9s【大数模除+进制】

A well-known trick to know if an integer N is a multiple of nine is to compute the sum S of its digits. If S is a multiple of nine, then so is N. Thi...

2018-05-03 08:48:37

阅读数:159

评论数:0

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