Problem G
Crime Wave – The Sequel
Input: Standard Input
Output: Standard Output
Time Lim...
(詳全文)
發表時間:2012-12-31 20:22:01 | 回應:0
Problem C: Exchange Rates
Source file:exchange.{c, cpp, java, pas}
Input file:exchange.in
Output fi...
(詳全文)
發表時間:2012-12-30 20:38:10 | 回應:0
2006/2007 ACM International Collegiate Programming Contest
University of Ulm Local Contest
Homogeneou...
(詳全文)
發表時間:2012-12-30 17:04:58 | 回應:0
Anagrams by Stack
How can anagrams result from sequences of stack operations? There are two
seq...
(詳全文)
發表時間:2012-12-28 22:13:39 | 回應:0
Searching in sqrt(n)
In binary, the square root of 2, denoted by sqrt(2), is an infinite number 1...
(詳全文)
發表時間:2012-12-28 22:10:25 | 回應:0
A Puzzling Problem
The goal of this problem is to write a program which will take from 1 to 5
puzzle pi...
(詳全文)
發表時間:2012-12-28 16:17:06 | 回應:0
A Sudoku grid is a
16 x 16 grid of cells grouped in sixteen 4 x 4 squares, where some cells are filled wit...
(詳全文)
發表時間:2012-12-27 18:05:29 | 回應:0
題目意思:從 N 個向量挑出 K 個,然後從 (0,0) 開始加,與 X 軸圍成的最大面積為何?解法:很明顯地,假使全部都選,...
(詳全文)
發表時間:2012-12-27 15:50:15 | 回應:0
Let's play a stone removing game.
Initially, n
stones are arranged on a circle and numbered
1,...,...
(詳全文)
發表時間:2012-12-27 07:50:05 | 回應:0
題目意思:給定一個圖的走訪方式(dfs),問每個節點的 degree。解法:既然原本 dfs 是用 stack 去寫,那麼還原也是 sta...
(詳全文)
發表時間:2012-12-26 22:12:35 | 回應:0
題目意思:這個人只能記住前 k 天的人,而他每天只會遇到一個人,如果不認識的話,他會把他記住,但是在 k 天後遺忘,...
(詳全文)
發表時間:2012-12-26 21:39:01 | 回應:0
Problem B: Fire!
Joe works in a maze. Unfortunately, portions of the maze have caught on fire,
and the...
(詳全文)
發表時間:2012-12-26 20:31:37 | 回應:0
Problem C
FLYING TO FREDERICTON
After being inspired by Salvador Dali's artwork, Brett decided he ...
(詳全文)
發表時間:2012-12-26 19:19:32 | 回應:0
A
Argentina
The Argentine football team
coach, the grea...
(詳全文)
發表時間:2012-12-25 21:47:22 | 回應:0
Problem: I
Binary
Multiplication
All of us know simple multiplication
...
(詳全文)
發表時間:2012-12-24 17:11:44 | 回應:0