摘要: 题目描述: 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 cas 阅读全文
posted @ 2022-08-12 15:57 D_coding_blog 阅读(49) 评论(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 le 阅读全文
posted @ 2022-08-12 15:47 D_coding_blog 阅读(50) 评论(0) 推荐(0)
摘要: (20)PAT甲级 1001 A+B Format(模拟 字符串) (25)PAT甲级 1002 A+B for Polynomials(模拟 多项式加法 map) (25)PAT甲级 1003 Emergency(DFS vector) (30)PAT甲级 1004 Counting Leaves 阅读全文
posted @ 2022-08-12 15:00 D_coding_blog 阅读(151) 评论(0) 推荐(0)
摘要: 题目描述: Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All 阅读全文
posted @ 2022-08-10 01:38 D_coding_blog 阅读(56) 评论(0) 推荐(0)
摘要: 题目描述: 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 i 阅读全文
posted @ 2022-08-09 21:05 D_coding_blog 阅读(39) 评论(0) 推荐(0)
摘要: 题目描述: 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 parts. The 阅读全文
posted @ 2022-08-09 18:40 D_coding_blog 阅读(75) 评论(0) 推荐(0)
摘要: 题目描述 It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward t 阅读全文
posted @ 2022-08-08 23:29 D_coding_blog 阅读(45) 评论(0) 推荐(0)
摘要: 题目描述: To evaluate the performance of our first year CS majored students, we consider their grades of three courses only:C- C Programming Language, M - 阅读全文
posted @ 2022-08-08 16:30 D_coding_blog 阅读(44) 评论(0) 推荐(0)
摘要: 题目描述: Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 11 阅读全文
posted @ 2022-08-08 00:04 D_coding_blog 阅读(53) 评论(0) 推荐(0)
摘要: 题目描述: Given a sequence of K integers { N1​, N2​, ..., NK​ }. A continuous subsequence is defined to be { Ni​, Ni+1​, ..., Nj​ } where 1≤i≤j≤K. The Max 阅读全文
posted @ 2022-08-06 14:42 D_coding_blog 阅读(40) 评论(0) 推荐(0)