原创 UVALive 7261 A - Xiongnu's Land
Wei Qing (died 106 BC) was a military general of the Western Han dynasty whose campaigns against the Xiongnu earne
原创 B - FatMouse's Speed
Input Input contains data for a bunch of mice, one mouse per line, terminated by end of file. The data for a part
原创 E - Frogger
Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitti
原创 H - Wormholes
Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole i
原创 F - Buggy Sat
Discovery Co. ltd. builds a satellite using a new kind of an intelligent camera. The camera has special software to
原创 模擬退火算法
一. 爬山算法 ( Hill Climbing ) 介紹模擬退火前,先介紹爬山算法。 爬山算法是一種簡單的貪心搜索算法,該算法每次從當前解的臨近解空間中選擇一個最優解作爲當前解,直到達到一個局部最優解。 爬山算法實現很簡單
原创 Codeforces Round #364 (Div. 2)C
C. They Are Everywhere Sergei B., the young coach of Pokemons, has found the big house which consists of n flats or
原创 C - Arctic Network
Description 國防部(DND)要用無線網絡連接北部幾個哨所。兩種不同的通信技術被用於建立網絡:每一個哨所有一個無線電收發器,一些哨所將有一個衛星頻道。 任何兩個有衛星信道的哨所可以通過衛星進行通信,而不管他們的位置。
原创 Aaronson
Problem Description Recently, Peter saw the equation x0+2x1+4x2+…+2mxm=n. He wants to find a solution (x0,x1,x2,…,
原创 C - Push!!
Mr. Schwarz was a famous powerful pro wrestler. He starts a part time job as a warehouseman. His task is to move a
原创 HDU_1907&2509 博弈(Nim博弈變形)
John Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 4184
原创 hdu1536-SG值
S-Nim Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 654
原创 A - 最少攔截系統
Description 某國爲了防禦敵國的導彈襲擊,發展出一種導彈攔截系統.但是這種導彈攔截系統有一個缺陷:雖然它的第一發炮彈能夠到達任意的高度,但是以後每一發炮彈都不能超過前一發的高度.某天,雷達捕捉到敵國的導彈來襲.由於該系
原创 E - Lazy Math Instructor
Description A math instructor is too lazy to grade a question in the exam papers in which students are supposed to
原创 C. NP-Hard Problem
Recently, Pari and Arya did some research about NP-Hard problems and they found the minimum vertex cover problem ve