24h購物| | PChome| 登入
2014-04-18 22:56:27
2013-08-11 22:27:36

[UVA][二分greedy] 11920 - 0 s, 1 s and ? Marks


0 s, 1 s and ? Marks Given a string consisting of 0, 1 and ? only, change all the ? to 0/1, so that the size of the largest group is minimized. A group is a substring that contains either all...

2013-08-11 22:20:13

[UVA] 10906 - Strange Integration


4th IIUC Inter-University Programming Contest, 2005 B Strange Integration Input: standard input Output: standard output ...

2013-08-11 22:15:01

[UVA] 856 - The Vigenère Cipher

Problem E The Vigenère Cipher For many centuries, most - if not all - known methods for enciphering messages considered a single cipher alphabet. For example, Julius Caesar used a substit...

2013-08-11 22:10:19

[UVA] 795 - Sandorf's Cipher


Sandorf's Cipher Count Mathias Sandorf, a hero of Jules Verne, encrypted the secret messages of the Trieste conspirators by using a cipher key a 66 hard paper square with some holes in it. In...

2013-08-11 21:59:51

[UVA] 11395 - Sigma Function


Problem ASigma FunctionInput: StandardInputOutput: StandardOutput Sigma function is an interesting function in NumberTheory. It is denoted by the Greek letter Sigma (σ). This functionactually denotes...

2013-08-11 21:42:59

[UVA][插頭DP] 11270 - Tiling Dominoes


A. Tiling Dominoes Problem Given a rectangular grid, with dimensions m x n, compute the number of ways of completely tiling it with dominoes. Note that if the rotation of one tiling matche...

2013-08-11 21:31:42

[UVA] 12090 - Counting Zeroes


F Counting Zeroes Input: Standard Input Output: Standard Output In our daily life we often meet some stupid persons. They tend to do things by hand which can o...

2013-08-11 21:26:54

[UVA][高斯消去] 12143 - Stopping Doom's Day


So! The time of the universe is up and it is the dooms day after five hours :-P, and you must stop it. But to do so you have to know the value of the following expression T: Because the secre...

2013-08-11 21:20:26

[UVA][博弈] 10111 - Find the Winning Move

Problem A: Find the Winning Move Source file:win.{c, cpp, java, pas} Input file:win.in Output file:win.out 4x4 tic-tac-toe is played on a board with four rows (numbered 0 to 3 from top to...

2013-08-11 20:51:35

[UVA] 12457 - Tennis contest

D: Tennis contest Background Nadal or Djokovic? Who is the best one? The Problem The two most famous tennis players, A and B, are facing each other in up to 2n-1 matches. The o...

2013-08-11 20:42:35

[UVA][積分] 11346 - Probability


G - Probability Time Limit: 1 sec Memory Limit: 16MB Consider rectangular coordinate system and point L(X,Y) which is randomly chosen among all points in the area A which is defined in the...

2013-08-11 17:58:34

[UVA][dp] 11176 - Winning Streak

Problem BWinning StreakInput: Standard InputOutput: Standard Output "You can run onfor a long time,sooner or later God'll cut you down."– Traditional folksong Mikael likes to gamble,and as you know, ...

2013-08-11 17:26:39

[UVA] 11021 - Tribles

Problem A Tribbles Input: Standard Input Output: Standard Output GRAVITATION, n. "The tendency of all bodies to approach one another with a strength proportion to the quan...

2013-08-11 16:56:21

[UVA][dp] 10218 - Let's Dance !!!

Problem L Let's Dance!! Input: Standard Input Output: Standard Output Time Limit: 2 seconds Consider the following scenario: You are a University Student; all of your friend...

2013-08-11 16:40:23

[UVA] 11816 - HST


Problem D: HST On July 1st, Ontario's Provincial Sales Tax (PST) was merged with the Federal Goods and Services Tax (GST), creating the Harmonized Sales Tax (HST). This changed the rate of ta...

第一頁      ‹上一頁       11 .  12 .  13 .  14 .  15 .  16 .  17 .  18 .  19 .  20 .      下一頁›      最末頁
«上十頁      第 20 / 142 頁 , 共 2116 筆       下十頁»      
TOP