原创 【CodeForces】C. Drazil and Factorial
Problem here Problem Drazil is playing a math game with Varda. Let’s define for positive integer x as a product of
原创 【CodeForces】A. Pouring Rain
Problem here Problem A lot of people in Berland hates rain, but you do not. Rain pacifies, puts your thoughts in or
原创 【GoogleCodeJam Qualification Round 2016】Problem A. Counting Sheep
Problem here Problem Bleatrix Trotter the sheep has devised a strategy that helps her fall asleep faster. First, sh
原创 【UVa】12325 - Zombie's Treasure Chest
Problem here Problem Some brave warriors come to a lost village. They are very lucky and find a lot of treasures an
原创 【POJ】Balance
Problem here Description Gigel has a strange “balance” and he wants to poise it. Actually, the device is different
原创 【UVa】11456 - Trainsorting
Problem here Problem Erin is an engineer. She drives trains. She also arranges the cars within each train. She pref
原创 【HDU】Red and Black
Problem here Problem Description There is a rectangular room, covered with square tiles. Each tile is colored eithe
原创 【HDU】2041-超級樓梯
Problem here Problem 有一樓梯共M級,剛開始時你在第一級,若每次只能跨上一級或二級,要走上第M級,共有多少種走法? INPUT 輸入數據首先包含一個整數N,表示測試實例的個數,然後是N行數據,每行包含一個整數M
原创 【topcoder】 SRM 144 div 2 200
Problem Problem Statement Computers tend to store dates and times as single numbers which represent the number of s
原创 【USACO】Milking Cows
Problem Three farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins m
原创 【USACO】Transformations
Problem A square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another squa
原创 【CodeForces】Registration system
problem here Problem A new e-mail service “Berlandesk” is going to be opened in Berland in the near future. The sit
原创 【UVa】524 - Prime Ring Problem
Problem here Problem A ring is composed of n (even number) circles as shown in diagram. Put natural numbers 1, 2,
原创 【HDU】暢通工程
Problem Description 某省調查城鎮交通狀況,得到現有城鎮道路統計表,表中列出了每條道路直接連通的城鎮。省政府“暢通工程”的目標是使全省任何兩個城鎮間都可以實現交通(但不一定有直接的道路相連,只要互相間接通過道路可
原创 【POJ】Highways
Problem here Description The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public hig