Boostable

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年2月7日

摘要: 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, and each line contains the information of a polynomial: K N1 aN1 N2 aN2 ... NK aNK, where K is the numbe... 阅读全文
posted @ 2014-02-07 23:15 Boostable 阅读(190) 评论(0) 推荐(0) 编辑

摘要: 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 than four digits). Input Each input file contains one test case. Each case contains a pair of integers a and b where -1000000 2intmain()3{4inta,b... 阅读全文
posted @ 2014-02-07 23:12 Boostable 阅读(238) 评论(0) 推荐(0) 编辑