24h購物| | PChome| 登入
2014-04-18 22:56:27
2014-03-08 09:47:04

[其他題目][二分答案] 差值中位數

Description 有 n 個整數,則任兩個數字有一個差值 (取絕對值)。因此會有 C(n, 2) 個差值,求這 C(n, 2) 個整數的中位數。 Input Format 第一行有一個正整數 T,代表有幾組測試資料。每組測資第一行有一個正整...

2014-03-04 11:06:47

[UVA][連通性狀態壓縮] 1501 - Construct the Great Wall


A defensive wall is a fortification used to protect a city or settlement from potential aggressors. From ancient to modern times, they were used to enclose settlements. Generally, these are ref...

2014-03-04 09:00:55

[UVA][BFS] 11359 - Guards, Imbecile Guards

G NEXT generation contest - 4 Time Limit – 5 secs Guards, Imbecile Guards You have a square maze ...

2014-03-04 08:03:01

[UVA][掃描線] 11355 - Cool Points

C Next Generation Contest - 4 Time Limit – 2 secs Cool Points We have a circle of radius R and several...

2014-03-03 08:08:21

[UVA][DP] 11370 - Moogle


I: Moogle You got the original idea of making map software, called Moogle Maps, for the new cool Maple mPhone. It will even be capable of indicating the location of a house address like ``M...

2014-03-03 07:48:31

[UVA][KM算法] 11383 - Golden Tiger Claw


Problem G Golden Tiger Claw Time Limit: 8 Second Omi, Raymondo, Clay and Kimiko are on new adventure- in search of new Shen Gong Wu. But Evil Boy Genius Jack Spicer is also there. O...

2014-03-02 22:05:26

[UVA][bitmask] 11394 - Digit Blocks


I I U C O N L I N E C O N T E S T 2 0 0 8 Problem J: Digit Blocks Input: standard input Output: standard output Often digit b...

2014-03-02 21:32:52

[UVA][歐拉函數] 11317 - GCD+LCM


Problem C GCD + LCM Input: Standard Input Output: Standard Output Given the value of N, you will have to find the number of digits in G and L in base googol (). The definition of G and L...

2014-03-02 21:17:16

[UVA][最大平均值問題] 1451 - Average

A DNA sequence consists of four letters, A, C, G, and T. The GC-ratio of a DNA sequence is the number of Cs and Gs of the sequence divided by the length of the sequence. GC-ratio is important in g...

2014-03-02 20:25:57

[UVA][圓周角] 12395 - Regular Convex Polygon


Regular Convex Polygon A regular convex polygon is a polygon where each side has the same length, and all interior angles are equal and less than 180 degrees. A square, for example, is a reg...

2014-03-02 20:14:13

[UVA][DP] 11617 - An Odd Love

D. An Odd Love Context Spring has arrived and our friend Pepito has fallen in love. But he is not sure if she also loves him, so he decides to ask the daisies. He takes a daisy and a...

2014-03-02 18:52:11

[UVA][DP] 11598 - Optimal Segments


C Optimal Segments Input: Standard Input Output: Standard Output Consider a grid of size 1 x N. Each cell of the grid has the following properties...

2014-03-02 14:02:47

[UVA][矩陣] 11675 - Happy Friends

Problem J Happy Friends Input: Standard Input Output: Standard Output The happiness of your friends makes you happier, and this increase of your happiness also has impact on your fr...

2014-03-02 13:15:24

[UVA][概率] 11680 - Dragster


Dragster Dragster racing is not very popular in Brazil, but it attracts crowds in the USA. The fans enjoy seeing cars racing at speeds up to 250 mph, even if only for a few seconds. Many compet...

2014-03-02 12:38:03

[UVA][貪婪] 11691 - Allergy Test


Problem C - Allergy Test Time limit: X seconds A test for allergy is conducted over the course of several days, and consists of exposing you to different substances (so called allergens)...

第一頁      ‹上一頁       1 .  2 .  3 .  4 .  5 .  6 .  7 .  8 .  9 .  10 .      下一頁›      最末頁
第 2 / 142 頁 , 共 2116 筆       下十頁»      
TOP