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

[UVA][數學] 10329 - Combinatorial Expression


Combinatorial Expression In combinatorics the term mainly used is nCr which literally means the number of ways r things can be taken from n things. Mathematically nCr is defined as : A combina...

2013-12-01 11:31:51

[UVA][數學&窮舉] 10317 - Equating Equations

Problem F Equating Equations Input: standard input Output: standard output Time Limit: 6 seconds Memory Limit: 32 MB Read equations with up to 16 terms and + and – operators...

2013-12-01 11:27:41

[UVA][窮舉] 10396 - Vampire Numbers

Problem D Vampire Numbers Input: standard input Output: standard output Time Limit: 5 seconds A number v = xy with an even number (n) of digits formed by multiplying a pair of n/2...

2013-11-24 10:25:48

[2013/11/24] 分水嶺


我也不是什麼天才我只是比任何人都拚命工作一步一腳印走過來的等我回頭一看,背後沒有任何一個身影那幫懶惰的人在山腳嘮叨著「誰叫那傢伙是天才」開什麼玩笑,我最討厭悠哉悠哉地長大的慢性子比我有時間、有精力、感...

2013-11-23 09:33:46

[UVA][bfs] 1341 - Different Digits


Given a positive integer n, your task is to find a positive integer m, which is a multiple of n, and that m contains the least number of different digits when represented in decimal. For example, nu...

2013-11-23 09:19:56

[UVA] 11392 - Binary*3 Type Multiple

I I U C O N L I N E C O N T E S T 2 0 0 8 Problem H: Binary*3 Type Multiple Input: standard input Output: standard output Mahbub...

2013-11-23 08:58:53

[UVA][倍增算法] 11354 - Bond

B NEXT Generation Contest 4 Time Limit – 8 secs Bond Once again, James Bond is on his way to saving the wo...

2013-11-21 08:58:31

[UVA][dp] 11331 - The Joys of Farming


Problem I: The Joys of Farming Farmer John owns b bulls and c cows. He also owns b+c fields where each field can hold either one cow or one bull. The fields are located in an area with many ...

2013-11-21 08:50:20

[UVA][dp] 11361 - Investigating Div-Sum Property

I Next generation contest – 4 Time Limit – 4 secs Investigating Div-Sum Property An integer is divisi...

2013-11-21 08:43:10

[UVA][greedy] 11330 - Andy's Shoes


Problem H: Andy's Shoes Andy has n pairs of shoes in n different colors. At the end of the day he likes to put them back on his shoe rack. He has learned to always put a left shoe together ...

2013-11-21 08:38:34

[UVA][SSSP] 11374 - Airport Express


Problem D: Airport Express In a small city called Iokh, a train service, Airport-Express, takes residents to the airport more quickly than other transports. There are two typ...

2013-11-16 18:14:19

[高等演算法][作業三] 討論


1. Given a 2-dimensional nn matrix of 0/1 integers, design a linear time algorithm to find a subrectanglewith the largest size such that all the elements in the sub-rectangle are equal to 1.2. Impro...

2013-11-16 18:08:21

[高等演算法][作業二] 討論


前略3. Given an integer (not necessary a decimal number) with n digits, we want to remove m ( n)digits from this number such that the resulting number is as large as possibe. Design an O(n)time algo...

2013-11-11 09:22:00

[TIOJ][最大矩形(變形)] 1643 - 建築工程規劃


Description 你是一家建築公司的建築工程師,你被派來做一塊空地的建築策劃工作。 這是一塊矩形的空地,你必須在上面選一塊子矩形當作樓房的地基範圍,而為了增加收益,你老闆希望你能夠盡量讓這塊當作地基的...

2013-11-11 09:16:22

[ZJ][dp] b123 最大矩形 (Area)


內容 : 輸入說明 : 輸入檔第一行有兩個整數,依序為M 和N, M≦200, N≦200;接下來的M 行中,每一行有N 個0 或1 的數字。這N 個數字彼此間用一個空白隔開。 ...

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