随笔分类 -  Pat-甲级

1015. Reversible Primes (20)
摘要: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 system 73 is a re 阅读全文

posted @ 2016-06-12 09:52 北门煎饼东门串儿 阅读(153) 评论(0) 推荐(0)

1010. Radix (25)
摘要:1011. World Cup Betting (20) With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players 阅读全文

posted @ 2016-06-12 09:45 北门煎饼东门串儿 阅读(172) 评论(0) 推荐(0)

1009. Product of Polynomials (25)
摘要:This 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 occu 阅读全文

posted @ 2016-06-10 17:50 北门煎饼东门串儿 阅读(112) 评论(0) 推荐(0)

1008. Elevator (20)
摘要:The 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 elev 阅读全文

posted @ 2016-06-08 10:57 北门煎饼东门串儿 阅读(143) 评论(0) 推荐(0)

1004. Counting Leaves (30)
摘要:A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Each input file contain 阅读全文

posted @ 2016-06-08 10:45 北门煎饼东门串儿 阅读(257) 评论(0) 推荐(0)

1005. Spell It Right (20)
摘要:Given 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 Specificat 阅读全文

posted @ 2016-06-07 19:55 北门煎饼东门串儿 阅读(163) 评论(0) 推荐(0)

1006. Sign In and Sign Out (25)
摘要:At 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 阅读全文

posted @ 2016-06-07 19:53 北门煎饼东门串儿 阅读(219) 评论(0) 推荐(0)

1002. A+B for Polynomials (25)
摘要:This time, you are supposed to find A+B where A and B are two polynomials. Input Each input file contains one test case. Each case occupies 2 lines, a 阅读全文

posted @ 2016-06-07 11:12 北门煎饼东门串儿 阅读(176) 评论(0) 推荐(0)

1001. A+B Format (20)
摘要:Calculate 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 t 阅读全文

posted @ 2016-06-06 19:06 北门煎饼东门串儿 阅读(99) 评论(0) 推荐(0)

导航