原创 51nod - 1279 扔盤子
有一口井,井的高度爲N,每隔1個單位它的寬度有變化。現在從井口往下面扔圓盤,如果圓盤的寬度大於井在某個高度的寬度,則圓盤被卡住(恰好等於的話會下去)。 盤子有幾種命運:1、掉到井底。2、被卡住。3、落到別的盤子上方。 盤子的高度也是單位高
原创 ZOJ 3640 Help Me Escape
Background If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And
原创 poj - 3071 Football
Description Consider a single-elimination football tournament involving 2n teams, denoted 1, 2, …, 2n. In each round of
原创 poj - 2411 Mondriaan's Dream
Description Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the d
原创 ZOJ 3604 Help Me Escape
Background If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And
原创 hdu - 4336 Card Collector
Problem Description In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, f
原创 codeforce - 148D D. Bag of mice
The dragon and the princess are arguing about what to do on the New Year's Eve. The dragon suggests flying to the mount
原创 poj - 3744 Scout YYF I
Description YYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy's base. Aft
原创 poj - 2151 Check the difficulty of problems
Description Organizing a programming contest is not an easy job. To avoid making the problems too difficult, the organi
原创 sgu - 495 Kids and Prizes
ICPC (International Cardboard Producing Company) is in the business of producing cardboard boxes. Recently the company
原创 poj - 2096 Collecting Bugs
Description Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he
原创 ural - 1776 Anniversary Firework
題目:http://acm.timus.ru/problem.aspx?space=1&num=1776 Denis has to prepare the Ural State University 90th anniversary fi
原创 hdu - 4405 Aeroplane chess
Problem Description Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz star
原创 hdu - 3853 LOOPS
Problem Description Akemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl). Homura wants to help her friend Madoka s
原创 【洛谷P1896【SCOI2005】】互不侵犯King
題目描述 在N×N的棋盤裏面放K個國王,使他們互不攻擊,共有多少種擺放方案。國王能攻擊到它上下左右,以及左上左下右上右下八個方向上附近的各一個格子,共8個格子。 輸入輸出格式 輸入格式: 只有一行,包含兩個數N,K ( 1 <=N <=9