24h購物| | PChome| 登入
2014-04-18 22:56:27
2013-10-08 10:06:01

[UVA] 1163 - The Right Tip

The Right Tip During the recent Football Worldcup, a group of friends worked at a courtyard café to pay for their holidays. Everyday they would collect all the tips given by the customers on...

2013-10-08 09:59:41

[UVA] 12586 - Overlapping Characters

All the uppercase English letters and decimal digits (total 36 characters) can be written in (16*43) grids (16 rows and 43 columns) using dots ('.') and asterisks ('*'). Some such characters are s...

2013-10-08 09:50:02

[UVA] 12516 - Cinema-cola


12516 - Cinema- Cinema-cola A group of Z friends is going to the movies. They have already reserved some specific locations in the theater. As a kind of ritual, every friend likes to drin...

2013-10-08 09:43:59

[UVA][greedy] 12545 - Bits Equalizer

You are given two non-empty strings S and T of equal lengths. S contains the characters `0', `1' and `?', whereas T contains `0' and `1' only. Your task is to convert S into T in minimum number of mov...

2013-10-08 09:35:15

[UVA][遞迴] 12596 - Recursive Texting


Problem E Recursive Texting All of you have typed in mobile phones. In this problem, you will have to do a similar thing. You are given a word. You will have to process it. T...

2013-10-06 21:26:15

[Javascript] 縮放表單


試寫一個點選會將表單收起,另一個則是將表單放出。其核心在於 JQuery 的 hide(), show() 這兩個函數操作。至於送出的 ActionEvent 還沒做。<html> <head> <script src="http://ajax.googleapis.com...

2013-10-06 21:21:52

[Javascript] Action 定時練習


寫一個類似貪吃蛇的模擬動作,無須考慮撞牆、吃到自己,隨著時間身體會增長。預設身體最多 50 節先用 JQuery 對還沒出來的 49 節做隱藏,隨著時間在呼叫 show()。<html><head> <title>JavaScript ...

2013-10-06 21:13:05

[Javascript][簡易] 去除註解


用 JavaScript 寫可以去除程式註解功能 從 C/C++ 下手來看,可能只有 // & /**/,要特別考慮註解中的註解。 此外還要特別小心 format string 中的註解,各種遞迴條件。這是一個非常隨意的版本,當作是 javascrip...

2013-10-06 21:06:28

[UVA][math] 10287 - Gifts in a Hexagonal Box


Problem E Gifts in a Hexagonal Box Input: standard input Output: standard output Time Limit: 2 seconds Memory Limit: 32 MB When we buy gifts for someone, we also try to make sur...

2013-10-06 20:56:49

[UVA][SCC變形] 10510 - Cactus


Problem BCactusInput: standard inputOutput: standard output A directed graph is a set V of vertices and a set of E ∈ {V x V} edges. An edge (u,v) is said to be directed from u to v (the edg...

2013-10-06 20:50:22

[UVA][DLX] 211 - The Domino Effect

The Domino Effect A standard set of Double Six dominoes contains 28 pieces (called bones) each displaying two numbers from 0 (blank) to 6 using dice-like pips. The 28 bones, which are unique, c...

2013-10-06 20:43:53

[UVA][概率DP] 11762 - Race to 1


B Race to 1 Input: Standard Input Output: Standard Output Dilu have learned a new thing about integers, which is - any positive integer greater tha...

2013-10-05 16:50:53

[演算法][HW3] 習題討論

這學期沒修演算法,順道複習一下同學的作業。[演算法B] Homework3: (你必須至少完成二個題目,若完成二個以上的題目則可以取得額外加分)(A) 請展示細節(資料結構及程序)來說明如何利用 presorting改善分而治之 2D ra...

2013-10-04 18:31:09

[C/C++][實做] Selection algorithm

Selection Algorithm算法描述:問題:給定序列中的找到第 k 小數字。一般會使用 sorting algorithm 在 O(n logn) 排序後找到 k-th 小數字。又或者使用一個 heap 維護,在效率 O(n logk) 內找到,但這一算法可以在 O(...

2013-10-04 11:22:27

[UVA][插頭DP] 1214 - Manhattan Wiring

There is a rectangular area containing n x m cells. Two cells are marked with ``2'', and another two with ``3''. Some cells are occupied by obstacles. You should connect the two ``2''s and also t...

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