海岛Blog

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

UVA227 Puzzle【模拟】

A children’s puzzle that was popular 30 years ago consisted of a 5×5 frame which contained 24 smallsquares of equal size. A unique letter of the alph...

2016-07-31 18:55:33

阅读数:1065

评论数:1

UVA455 Periodic Strings【水题】

A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of length k. For example, t...

2016-07-31 15:47:10

阅读数:2073

评论数:0

UVA1225 UVALive3996 Digit Counting【水题】

Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequenceof consecutive integers starting with 1 to N (1...

2016-07-31 11:55:07

阅读数:897

评论数:2

UVA1585 UVALive3354 Score【水题】

There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problemand an ‘X’ means a wrong answer. The score of each ...

2016-07-31 08:57:32

阅读数:835

评论数:1

UVA1584 UVALive3225 Circular Sequence【水题】

  Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence “CGAGTCAGCT”, that is, the last symbol “T” i...

2016-07-30 23:50:21

阅读数:964

评论数:1

HDU1266 Reverse Number【水题】

Reverse Number Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10477    Accepted Submission(...

2016-07-30 20:05:51

阅读数:816

评论数:0

UVA1583 UVALive3355 Digit Generator【水题+打表】

  For a positive integer N, the digit-sum of N is defined as the sum of N itself and its digits. When M is the digitsum of N, we call N a generator o...

2016-07-30 14:54:14

阅读数:537

评论数:0

UVA340 UVALive5448 Master-Mind Hints【水题】

  MasterMind is a game for two players. One of them, Designer, selects a secret code. The other, Breaker, tries to break it. A code is no more than a...

2016-07-30 10:58:37

阅读数:596

评论数:0

UVA10018 Reverse and Add【回文数+水题】

The “reverse and add” method is simple: choose a number, reverse its digits and add it to the original.If the sum is not a palindrome (which means, i...

2016-07-29 21:45:59

阅读数:760

评论数:0

HDU1318 POJ1590 UVA401 ZOJ1325 Palindromes【回文+水题】

Palindromes Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1208    Accepted Submission(s)...

2016-07-29 17:51:39

阅读数:921

评论数:0

HDU1163 Eddy's digital Roots【快速模幂+九余数定理+水题】

Digital Roots Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 84156    Accepted Submission(s...

2016-07-29 13:14:18

阅读数:650

评论数:0

POJ2538 ZOJ1884 UVA10082 WERTYU【输入输出+水题】

WERTYU Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 9449   Accepted: 4515 Description A common typing error is to place t...

2016-07-29 08:41:36

阅读数:757

评论数:0

UVA1586 UVALive3900 Molar mass【输入输出+水题】

An organic compound is any member of a large class of chemicalcompounds whose molecules contain carbon. The molarmass of an organic compound is the m...

2016-07-28 21:52:25

阅读数:1028

评论数:0

HDU1321 ZOJ1295 Reverse Text【水题】

Reverse Text Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8300    Accepted Submission(s...

2016-07-28 19:14:35

阅读数:787

评论数:4

POJ1488 UVA272 UVALive5381 TEX Quotes【输入输出+水题】

TEX Quotes Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 10850   Accepted: 5630 Description TEX is a typ...

2016-07-28 10:16:58

阅读数:879

评论数:0

UVA11466 Largest Prime Divisor【筛选法】

All integer numbers are divisible by primes. If a number is divisible by more than one prime number,then it obviously has a largest prime divisor. Th...

2016-07-28 08:37:38

阅读数:479

评论数:0

HDU2136 Largest prime factor【水题】

Largest prime factor Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 14571    Accepted Sub...

2016-07-27 22:19:28

阅读数:608

评论数:0

数据结构之线段树

原文链接: 数据结构之线段树。 1、概述 线段树,也叫区间树,是一个完全二叉树,它在各个节点保存一条线段(即“子数组”),因而常用于解决数列维护问题,它基本能保证每个操作的复杂度为O(lgN)。 2、线段树基本操作 线段树的基本操作主要包括构造线段树,区间查询和区间修改。 (1)    线段树构造...

2016-07-27 22:14:40

阅读数:397

评论数:0

数据结构之树状数组

原文地址:数据结构之树状数组。 1、概述 树状数组(binary indexed tree),是一种设计新颖的数组结构,它能够高效地获取数组中连续n个数的和。概括地说,树状数组通常用于解决以下问题:数组{a}中的元素可能不断地被修改,怎样才能快速地获取连续几个数的和? 2、树状数组基本操作 传统数...

2016-07-27 21:38:52

阅读数:450

评论数:0

HDU1877 又一版 A+B【进制】

又一版 A+B Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 17619    Accepted Submission(s): 6...

2016-07-27 16:37:54

阅读数:882

评论数:0

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