随笔分类 - 模拟
摘要:1009 Product of Polynomials This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains o
阅读全文
摘要:Elevator The highest building in our city has only one elevator. A request list is made up with Npositive numbers. The numbers denote at which floors
阅读全文
摘要:1001 A+B Format Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless th
阅读全文
摘要:Colors in Mars People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-dig
阅读全文
摘要:Palindromic Number A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a
阅读全文
摘要:Have Fun with Numbers Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it
阅读全文
摘要:Digital Library A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and
阅读全文
摘要:General Palindromic Number A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234
阅读全文
摘要:Phone Bills A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per min
阅读全文
摘要:Reversible Primes A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal
阅读全文
摘要:Waiting in Line Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two
阅读全文
摘要:Give Me the Number Numbers in English are written down in the following way (only numbers less than 109are considered). Number abc,def,ghi is written
阅读全文

浙公网安备 33010602011771号