11936 - The Lazy Lumberjacks

摘要: Once upon a time in a far, far away forest, there was a team of lazy lumberjacks. Since they were too lazy to cut trees, they were always figuring out ways to sneak out of work. Their foreman, on the other side, was always trying to put them all to work.After a lot of discussions the foreman and the 阅读全文
posted @ 2013-02-17 11:44 喂喂还债啦 阅读(322) 评论(0) 推荐(0) 编辑

11942 - Lumberjack Sequencing

摘要: Another tale of lumberjacks?. Let see ...The lumberjacks are rude, bearded workers, while foremen tend to be bossy and simpleminded. The foremen like to harass the lumberjacks by making them line up in groups of ten, ordered by the length of their beards. The lumberjacks, being of different physical 阅读全文
posted @ 2013-02-17 11:31 喂喂还债啦 阅读(524) 评论(0) 推荐(0) 编辑

11984 - A Change in Thermal Unit

摘要: Measuring temperature and temperature differences are common task in many research and applications. Unfortunately, there exists more than one unit of measuring temperatures. This introduces a lot of confusion at times. Two popular units of measurements are Celsius(C) and Fahrenheit (F). The convers 阅读全文
posted @ 2013-02-16 21:19 喂喂还债啦 阅读(253) 评论(0) 推荐(0) 编辑

12019 - Doom's Day Algorithm

摘要: BackgroundNo. Doom's day algorithm is not a method to compute which day the world will end. It is an algorithm created by the mathematician John Horton Conway, to calculate which day of the week (Monday, Tuesday, etc.) corresponds to a certain date.This algorithm is based in the idea of thedooms 阅读全文
posted @ 2013-02-16 20:44 喂喂还债啦 阅读(282) 评论(0) 推荐(0) 编辑

12149 - Feynman

摘要: Richard Phillips Feynman was a well known American physicist and a recipient of the Nobel Prize in Physics. He worked in theoretical physics and also pioneered the field of quantum computing. He visited South America for ten months, giving lectures and enjoying life in the tropics. He is also known 阅读全文
posted @ 2013-02-08 19:54 喂喂还债啦 阅读(267) 评论(0) 推荐(0) 编辑

12459 - Bees' ancestors

摘要: BackgroundMaya is a bee that likes to help her friends. Willy is a drone bee and Maya's best friend. He has just discovered that he has no father, and he is worried about that.The drone bee Willy.The ProblemMaya knows that female bees have two parents (one father and one mother), but male or dro 阅读全文
posted @ 2013-02-08 19:23 喂喂还债啦 阅读(315) 评论(0) 推荐(0) 编辑

12468 - Zapping

摘要: I’m a big fan of watching TV. However, I don’t like to watch a single channel; I’m constantly zapping between different channels. My dog tried to eat my remote controller and unfortunately he partially destroyed it. The numeric buttons I used to press to quickly change channels are not working anymo 阅读全文
posted @ 2013-02-08 18:56 喂喂还债啦 阅读(513) 评论(0) 推荐(0) 编辑

11479 - Is this the easiest problem?

摘要: A triangle is a geometric shape with three positive sides. However, any given three sides won’t necessarily form a triangle. The three sides must form a closed region. Triangles are categorized depending on the values of the sides of a valid triangle. In this problem you are required to determine th 阅读全文
posted @ 2013-02-08 11:53 喂喂还债啦 阅读(459) 评论(0) 推荐(0) 编辑

11364 - Parking

摘要: When shopping on Long Street, Michael usually parks his car at some random location, and then walks to the stores he needs. Can you help Michael choose a place to park which minimises the distance he needs to walk on his shopping round? <TEX2HTML_VERBATIM_MARK>Long Street is a straight line, w 阅读全文
posted @ 2013-02-08 10:41 喂喂还债啦 阅读(805) 评论(0) 推荐(0) 编辑

11185 - Ternary

摘要: You will be given a decimal number. You will have to convert it to its ternary (Base 3) equivalent.InputThe input file contains at most 100 lines of inputs. Each line contains a non-negative decimal integer N(N<1000000001). Input is terminated by a line containing a negative value. This line shou 阅读全文
posted @ 2013-02-07 11:32 喂喂还债啦 阅读(222) 评论(0) 推荐(0) 编辑