2012年1月30日

1005. Spell It Right

摘要: 1005. Spell It Right (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains one test case. Each case occupies one l 阅读全文

posted @ 2012-01-30 13:28 坑王 阅读(219) 评论(0) 推荐(0) 编辑

1001. A+B Format

摘要: 1001. A+B Format (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).InputEach input file contains one test case. Each case 阅读全文

posted @ 2012-01-30 13:25 坑王 阅读(402) 评论(0) 推荐(0) 编辑

1002. A+B for Polynomials

摘要: 1002. A+B for Polynomials (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial: K N1 aN1N 阅读全文

posted @ 2012-01-30 13:24 坑王 阅读(412) 评论(0) 推荐(0) 编辑

1008. Elevator

摘要: 1008. Elevator (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevat 阅读全文

posted @ 2012-01-30 13:23 坑王 阅读(205) 评论(0) 推荐(0) 编辑

1011. World Cup Betting

摘要: 1011. World Cup Betting (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Similarly, footb 阅读全文

posted @ 2012-01-30 13:22 坑王 阅读(281) 评论(0) 推荐(0) 编辑

1006. Sign In and Sign Out

摘要: 1006. Sign In and Sign Out (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you ar 阅读全文

posted @ 2012-01-30 13:21 坑王 阅读(270) 评论(0) 推荐(0) 编辑

1020. Tree Traversals

摘要: 1020. Tree Traversals (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the corresponding binar 阅读全文

posted @ 2012-01-30 13:20 坑王 阅读(481) 评论(0) 推荐(0) 编辑

1009. Product of Polynomials

摘要: 1009. Product of Polynomials (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A*B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a pol 阅读全文

posted @ 2012-01-30 13:19 坑王 阅读(494) 评论(0) 推荐(0) 编辑

1015. Reversible Primes

摘要: 1015. Reversible Primes (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAreversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a prime.No 阅读全文

posted @ 2012-01-30 13:18 坑王 阅读(250) 评论(0) 推荐(0) 编辑

1019. General Palindromic Number

摘要: 1019. General Palindromic Number (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.Alth 阅读全文

posted @ 2012-01-30 13:17 坑王 阅读(255) 评论(0) 推荐(0) 编辑

导航