24h購物| | PChome| 登入
2014-04-18 22:56:27
2013-10-04 11:15:49

[UVA][TSP&KMP] 1204 - Fun Game

A few kids are standing around an old tree playing a game. The tree is so huge that each kid can only see the kids close to him/her. The game consists many �turns�. At the beginning of each turn...

2013-10-02 14:43:22

[UVA][四分樹&DP] 12074 - The Ultimate Bamboo Eater


Jingjing the panda lives in a forest containing n pieces of bamboo land. Each bamboo land is very small and can be regarded as a single point. Bamboo land i contains Li bamboos and is associat...

2013-10-02 14:34:58

[UVA][二分圖檢查MST] 11267 - The Hire-a-Coder Business Model

Problem H The ‘Hire-a-Coder’ Business Model Input: Standard Input Output: Standard Output As some other websites, ‘Hire-a-Coder’ is a new website that works as an agent between custo...

2013-10-02 14:27:45

[UVA][SCC] 1243 - Polynomial-time Reductions

In computational complexity theory, polynomial-time reduction is an important concept. If the existence of a polynomial-time algorithm for problem B implies that problem A also has a polynom...

2013-10-02 14:21:37

[UVA][TSP] 11405 - Can U Win?


Can U Win? You are playing Chess with your little sister. Unfortunately She is too smart for you. You are about to lose with only a King and a Knight. Your sister is mad about `panju muttai' ...

2013-10-02 14:13:21

[UVA][TSP] 10937 - Blackbeard the Pirate


Problem D: Blackbeard the Pirate Blackbeard the Pirate has stashed up to 10 treasures on a tropical island, and now he wishes to retrieve them. He is being chased by several authorities however, a...

2013-10-02 08:35:01

[UVA][二分貪婪] 12255 - Underwater Snipers


King Motashota is in a war against the mighty Bachchaloks. He has formed a well-trained army of snipers, and planning to use them as much as possible. In one of the missions, he has S snipers. They...

2013-10-02 08:27:51

[UVA][二分maxflow] 10983 - Buy one, get the rest free

Problem B Buy one, get the rest free. Time Limit: 3 seconds "Whoa! It feels like I'm flying!" Lrrr It's year 2258, and the age of airplanes is coming to an end. Everyone is usi...

2013-10-02 08:18:41

[UVA][二分匈牙利] 1221 - Against Mammoths

Back to year 3024, humans finally developed a new technology that enables them to conquer the alien races. The new technology made it possible to produce huge spaceships known as Saber Tooth space...

2013-09-29 08:22:48

[JAVA] 具有縮放功能的邊框 border

寫一個具有縮放功能的邊框,由於 border class 不是 component,因此沒辦法加入 listener。考慮將其 extends listener,然後加入 parent 的 listener 之中。package package1;import javax.swing.border.*;import ja...

2013-09-27 13:58:59

[JAVA] 實作拖曳功能

如影片所述,寫一個拖曳物件功能。事實上就是撰寫一個 listener 去聆聽滑鼠的指令,並且這個 class 要能運用在相對位置上的處理。這樣不會侷限於單一程式使用。首先,先來貼核心的 Listener。-> 詳細說明請參照ht...

2013-09-26 08:19:32

[UVA][二分貪婪] 1199 - Elevator Stopping Plan


ZSoft Corp. is a software company in GaoKe Hall. And the workers in the hall are very hard-working. But the elevator in that hall always drives them crazy. Why? Because there is only ...

2013-09-25 08:20:35

[UVA][樹形背包dp] 1236 - Disjoint Paths

Path in a graph is defined to be disjoint if there is no common edge and vertex that belongs to more than one path. Given a connected graph with N nodes and N - 1 weighted edges, we are intere...

2013-09-25 08:14:08

[UVA] 12137 - Puzzles of Triangles


Puzzles with geometric shapes are very interesting and is said to have great impact in developing geometric insight of a child. ACM (Actual Challenge Makers) is planning to bring out one such puzzle...

2013-09-25 08:08:47

[UVA][IDA*] 10073 - Constrained Exchange Sort

Problem D Constrained Exchange Sort Input : standard input Output : standard output Given a permutation of 12 letters 'A'-'L', you are invited to write a program to sort them in a...

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