原创 LightOJ - 1049 One Way Roads

Description Nowadays the one-way traffic is introduced all over the world in order to improve driving safety and redu

原创 HDU - 1002 A + B Problem II

Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum o

原创 HDU - 1240 Asteroids!

Description You're in space.  You want to get home.  There are asteroids.  You don't want to hit them.    Input

原创 LightOJ - 1046 Rider

Description A rider is a fantasy chess piece that can jump like a knight several times in a single move. A rider that

原创 HDU - 2141 Can you find it?

Description Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if y

原创 HDU - 2393 Higher Math

Description You are building a house. You'd prefer if all the walls have a precise right angle relative to the ground

原创 HDU - 1789 Doing Homework again(貪心)

Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every tea

原创 HDU 2181 哈密頓繞行世界問題(DFS)

Description 一個規則的實心十二面體,它的 20個頂點標出世界著名的20個城市,你從一個城市出發經過每個城市剛好一次後回到出發的城市。    Input 前20行的第i行有3個數,表示與第i個城市相鄰的3個城市

原创 LightOJ - 1281 New Traffic System

Description The country - Ajobdesh has a lot of problems in traffic system. As the Govt. is very clever (!), they ma

原创 LightOJ - 1174 Commandos

Description A group of commandos were assigned a critical task. They are to destroy an enemy head quarter. The enemy

原创 HDU - 1318 Palindromes(字符串)

Description A regular palindrome is a string of numbers or letters that is the same forward as backward. For example

原创 HDU - 2602 Bone Collector(01揹包)

Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varie

原创 POJ - 3646 The Dragon of Loowater(貪心)

Description Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores

原创 POJ 3669Meteor Shower(廣搜)

Description Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash

原创 HDU - 2570 迷瘴(貪心)

Description 通過懸崖的yifenfei,又面臨着幽谷的考驗―― 幽谷周圍瘴氣瀰漫,靜的可怕,隱約可見地上堆滿了骷髏。由於此處長年不見天日,導致空氣中佈滿了毒素,一旦吸入體內,便會全身潰爛而死。 幸好yifenfei早