24h購物| | PChome| 登入
2014-04-18 22:56:27
2012-12-22 11:07:26

[UVA][bfs] 11513 - 9 Puzzle

9 Puzzle Alex has a puzzle her father gave her last Christmas. It has nine numbered squares arranged in a 3×3 matrix (three rows and three columns) and it's mechanically designed to allow the fo...

2012-12-22 09:52:46

[UVA][進制轉換] 276 - Egyptian Multiplication

Egyptian Multiplication In 1858, A. Henry Rhind, a Scottish antiquary, came into possession of a document which is now called the Rhind Papyrus. Titled ``Directions for Attaining Knowledge into A...

2012-12-21 21:03:34

[UVA][graph] 11175 - From D to E and Back

Problem A From D to E and back Input: Standard Input Output: Standard Output Anyone who goes to a psychiatrist ought to have his head examined. Samuel ...

2012-12-21 18:42:06

[UVA][塊狀表] 12003 - Array Transformer


Array Transformer Write a program to transform an array A[1], A[2],..., A[n] according to m instructions. Each instruction (L, R, v, p) means: First, calculate how many numbers from A[L] t...

2012-12-21 16:36:51

[UVA][dp] 12034 - Race


Race Disky and Sooma, two of the biggest mega minds of Bangladesh went to a far country. They ate, coded and wandered around, even in their holidays. They passed several months in this way. Bu...

2012-12-21 16:16:16

[UVA][因數個數] 12005 - Find Solutions


Find Solutions Look at the following equation: c = ab - + 1 Now given the value of c, how many possible values of and a and b are there (a and b must be positive integers)? ...

2012-12-20 22:56:49

[UVA][cycle] 11036 - Eventually Periodic Sequence


Problem C: Eventually periodic sequence Given is a function f: 0..N --> 0..N for a non-negative N and a non-negative integer n ≤ N. One can construct an infinite sequence F = f1(n), f2(...

2012-12-20 19:12:07

[UVA][樹走訪] 372 - WhatFix Notation


There are three traversal methods commonly used in compilers and calculators: prefix infix postfix For example, a single expression can be written in each form infix: ...

2012-12-20 18:56:44

[UVA][井字遊戲盤面判斷] 10363 - Tic Tac Toe


Problem B: Tic Tac Toe Tic Tac Toe is a child's game played on a 3 by 3 grid. One player, X, starts by placing an X at an unoccupied grid position. Then the other player, O, places an O at an u...

2012-12-20 09:15:33

[UVA][floyd] 1056 - Degrees of Separation


In our increasingly interconnected world, it has been speculated that everyone on Earth is related to everyone else by no more than six degrees of separation. In this problem, you must write a pro...

2012-12-19 22:14:48

[UVA][骰子同構] 11959 - Dice

I— Dice Time Limit: 1 sec Memory Limit: 32 MB Mary add Sue are playing with dices. Rules are simple: at the begging each of them puts coin on the table and roll a dice. Wins a player who...

2012-12-19 07:55:34

[UVA][遞迴] 12041 - BFS (Binary Fibonacci String)

Problem B - BFS (Binary Fibonacci String) We are familiar with the Fibonacci sequence (1, 1, 2, 3, 5, 8, ...). What if we define a similar sequence for strings? Sounds interesting? Let's see. ...

2012-12-18 22:59:06

[UVA][cycle] 10162 - Last Digit

10162 - Last Digit Problem B.Last Digit Background Give you a integer number N (1<=n<=2*10100). Please compute S=11+22+33+…+NN Give the last digit of S to me. ...

2012-12-18 21:49:16

[UVA][greedy+dp] 711 - Dividing up


Dividing upMarsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had...

2012-12-17 22:08:25

[UVA][greedy] 11292 - Dragon of Loowater


Problem C: The Dragon of Loowater Once 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 prim...

第一頁      ‹上一頁       61 .  62 .  63 .  64 .  65 .  66 .  67 .  68 .  69 .  70 .      下一頁›      最末頁
«上十頁      第 63 / 142 頁 , 共 2116 筆       下十頁»      
TOP