原创 【hdoj 1164】Eddy's research I
Eddy's research I Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s):
原创 【poj 2234】Matches Game
Matches Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9180 Accepted: 5298 Description Here is a simp
原创 博弈論之SG函數
SG函數 首先定義一個基於集合的運算mex{a1,a2,a3....},運算的結果爲集合的整數補集中的最小自然數。 對於一個給定的有向無環圖,定義關於圖的每個頂點的Sprague-Grundy函數g如下:
原创 【codeforces#3A】Shortest path of the king
A. Shortest path of the king time limit per test 1 second memory limit per test 64 megabytes input standard input outpu
原创 【codeforces24A】Ring road
A. Ring road time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard out
原创 【codeforces#25B】 Phone numbers
B. Phone numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard
原创 【codeforces 29A】Spit Problem
A. Spit Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard
原创 【codeforces#2A】Winner
A. Winner time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output
原创 博弈論之Nim問題
通常的Nim遊戲的定義 有若干堆石子,每堆石子的數量都是有限的,合法的移動是“選擇一堆石子並拿走若干顆(不能不拿)”,如果輪到某個人時所有的石子堆都已經被拿空了,則判負(因爲他此刻沒有任何合法的移動)。 L.Bouton
原创 【codeforces26A】Almost Prime
A. Almost Prime time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard
原创 【hdoj 5000】Clone
Clone Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1149 Accept
原创 【poj 2068】Nim
Nim Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 1429 Accepted: 809 Description Let's play a traditional
原创 【codeforces105A】Transmigration
A. Transmigration time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standar
原创 【uva 11021】Tribbles
Tribbles Input: Standard Input Output: Standard Output GRAVITATION, n. "The tendency of all bodies to approach one anot
原创 【hdoj 4315】Climbing the Hill
Climbing the Hill Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Sub