Problem E
Distinct
Subsequences
Input: standard input
Output: standard output
A subs...
(詳全文)
發表時間:2012-09-19 20:32:55 | 回應:0
Equation Elation
The author of an elementary school algebra text book has approached
you to write a progra...
(詳全文)
發表時間:2012-09-19 16:52:14 | 回應:0
Immediate Decodability
An encoding of a set of symbols is said to be immediately decodable if no code...
(詳全文)
發表時間:2012-09-15 10:51:54 | 回應:0
Cube painting
We have a machine for painting cubes. It is supplied with
three different colors: blue,
re...
(詳全文)
發表時間:2012-09-15 10:00:06 | 回應:0
Problem D - Australian Voting
Australian ballots require that the voter rank the candidates in order
of ch...
(詳全文)
發表時間:2012-09-13 15:20:19 | 回應:0
Making Change
Given an amount of money and unlimited (almost) numbers of coins (we
will ignore notes for t...
(詳全文)
發表時間:2012-09-13 11:25:32 | 回應:0
When we need to find the arithmetic average of some numbers we always tend to keep the result in a
floating...
(詳全文)
發表時間:2012-09-13 10:19:00 | 回應:0
F— Brainfuck
Time Limit: 3 secMemory Limit: 32 MB
Recently your friend Bob has bought a new brai...
(詳全文)
發表時間:2012-09-13 09:59:10 | 回應:0
Problem B: Situp Benches
The gym at the University of Alberta has two identical sit up benches
that are ...
(詳全文)
發表時間:2012-09-12 08:04:53 | 回應:0
內容
:
你
所任職的公司專門製造用來撿垃圾的機器人,每當機器人被指派到一個工作前,會先...
(詳全文)
發表時間:2012-09-11 21:08:48 | 回應:0
Transaction Processing
You have been called upon to write a program which performs one of
the initial ste...
(詳全文)
發表時間:2012-09-10 19:45:34 | 回應:0
The Spot Game
The game of Spot is played on an NxN board as shown below for N = 4.
During the game, altern...
(詳全文)
發表時間:2012-09-10 19:15:37 | 回應:0
Problem E: Graphical Editor
Problem
The simple graphical editor deals with a rectangular table
M×N ...
(詳全文)
發表時間:2012-09-03 20:41:17 | 回應:0
模擬, 全部往下推到底, 再來全部往左推到底, 大概是 O(n^3)#include <stdio.h>#include <stdlib.h>typede...
(詳全文)
發表時間:2012-09-03 11:46:49 | 回應:0
細想, 1. when k >= 5, n >= 5, 那麼裝備只有 5 種屬性, 只要抓每種屬性的最大值加總即可,2. when k < 5, 則...
(詳全文)
發表時間:2012-09-03 10:13:55 | 回應:0