PAT甲级
文章平均质量分 55
malloc-free
这个作者很懒,什么都没留下…
展开
-
PAT甲级1005 Spell It Right
对于每个测试用例,用英语单词在一行中输出总和的数字。两个连续单词之间必须有一个空格,但行尾不能有额外的空格。给定一个非负整数N,你的任务是计算N的所有数字的总和,并用英语输出总和的每个数字。每个输入文件包含一个测试用例。每个案例占用一行,其中包含N(≤10100).原创 2024-08-31 22:29:26 · 183 阅读 · 0 评论 -
PAT甲级1002 A+B for Polynomials
其中K是多项式中非零项的数量,NK aNK(i=1,2,⋯,K)分别是指数和系数。给出1≤K≤10,0≤NK原创 2024-08-31 19:59:11 · 183 阅读 · 0 评论 -
PAT甲级1001 A+B Format (sprintf?)
PAT甲级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 there are less than four digits).原创 2024-08-31 17:33:20 · 230 阅读 · 0 评论