摘要:
Box of BricksTime Limit:1 Second Memory Limit:32768 KBLittle Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his older sister Alice. ``Nah, you should make all stacks the same heig 阅读全文
摘要:
Daffodil numberTime Limit:1 Second Memory Limit:32768 KBThe daffodil number is one of the famous interesting numbers in the mathematical world. A daffodil number is a three-digit number whose value is equal to the sum of cubes of each digit.For example. 153 is a daffodil as 153 = 13+ 53+ 33.InputThe 阅读全文
摘要:
Martian AdditionTime Limit:1 Second Memory Limit:32768 KBIn the 22nd Century, scientists have discovered intelligent residents live on the Mars. Martians are very fond of mathematics. Every year, they would hold an Arithmetic Contest on Mars (ACM). The task of the contest is to calculate the sum of 阅读全文
摘要:
Head-to-Head MatchTime Limit:1 Second Memory Limit:32768 KBOur school is planning to hold a new exciting computer programming contest. During each round of the contest, the competitors will be paired, and compete head-to-head. The loser will be eliminated, and the winner will advance to next round. 阅读全文
摘要:
Root of the ProblemTime Limit:1 Second Memory Limit:32768 KBGiven positive integers B and N, find an integer A such that ANis as close as possible to B. (The result A is an approximation to the Nth root of B.) Note that ANmay be less than, equal to, or greater than B.Input:The input consists of one 阅读全文