新聞| | PChome| 登入
2014-04-18 22:56:27
2012-09-16 07:38:02

[ZJ][多重背包+Greedy] a350. 3. 緞帶的購買問題

內容 : 小明的老師想要買緞帶來布置教室。她想要利用緞帶(緞帶的花色一樣)做成各種不同大小的花飾垂吊在教室後面,它們所需的緞帶長度分列如下: 花...

2012-09-15 20:59:42

[ZJ][spfa、尤拉路徑、bitmask] a416. 6. 城市馬拉松


內容 : H城市舉辦馬拉松比賽。比賽區域有 N個補給站,2≤N≤1000。為了方便說明,我們將N個補給站名稱以正整數1,2,…,N來表示。 N個補給站有街道來連...

2012-09-15 10:51:54

[UVA][編碼檢查、Trie] 644 - Immediate Decodability

Immediate Decodability An encoding of a set of symbols is said to be immediately decodable if...

2012-09-15 10:00:06

[UVA][骰子翻轉比對] 253 - Cube painting


Cube painting We have a machine for painting cubes. It is supplied with three different colors:...

2012-09-13 15:20:19

[UVA][模擬] 10142 - Australian Voting

Problem D - Australian Voting Australian ballots require that the voter rank the candidates in or...

2012-09-13 11:25:32

[UVA][硬幣問題, dp背包解] 166 - Making Change

Making Change Given an amount of money and unlimited (almost) numbers of coins (we will ignore n...

2012-09-13 10:19:00

[UVA] 12060 - All Integer Average


When we need to find the arithmetic average of some numbers we always tend to keep the result in a ...

2012-09-13 09:59:10

[UVA][模擬] 11956 - Brainfuck

F— Brainfuck Time Limit: 3 secMemory Limit: 32 MB Recently your friend Bob has bought a...

2012-09-12 10:39:41

[TopCoder][SRM553] Suminator

一樣, 看了題解之後有點慚愧, 寫得不是很好看,這題要特別注意回傳一定要整數, 且如果代入的數字是 0, 要把它當功能來看待public class Suminator { public int fi...

2012-09-12 10:37:35

[TopCoder][SRM553] PlatypusDuckAndBeaver

看了題解之後就慚愧了 ... 我只是發布來自己看得, 別虐 ...#include<iostream>#include<map>#include<math.h>#i...

2012-09-12 09:53:56

[TopCoder][SRM543] EllysXors 區間XOR

Problem Statement XOR problems became very popular in TopCoder recently. (If you do not ...

2012-09-12 08:04:53

[UVA][dp] 11578 - Situp Benches


Problem B: Situp Benches The gym at the University of Alberta has two identical sit up benches ...

2012-09-11 21:08:48

[ZJ版本][dp] d524. Q10599 - Robots(II)


內容 : 你 所任職的公司專門製造用來撿垃圾的機器人,每當機器人被指派到一個工作前,會先把場地的配置圖轉成網格輸入到電腦中,每個場地可以視為一平面,在圖上會標 ...

2012-09-10 19:45:34

[UVA][模擬] 187 - Transaction Processing

Transaction Processing You have been called upon to write a program which performs one of the i...

2012-09-10 19:15:37

[UVA][模擬、旋轉] 141 - The Spot Game


The Spot Game The game of Spot is played on an NxN board as shown below for N = 4. During the ga...

第一頁      ‹上一頁       71 .  72 .  73 .  74 .  75 .  76 .  77 .  78 .  79 .  80 .      下一頁›      最末頁
«上十頁      第 77 / 142 頁 , 共 2116 筆       下十頁»      
TOP