- 博客(3)
- 收藏
- 关注
原创 Unique函数的应用
"unique"是C++语言中的STL函数,包含于<algorithm>头文件中。功能是将数组中相邻的重复元素去除。然而其本质是将重复的元素移动到数组的末尾,最后再将迭代器末尾指向最后不重复的下标。所以数组...
2021-05-29 15:26:04
620
原创 PAT甲级 1002 A+B for Polynomials
这个题我一直没发现错误,只对了第一个样例,我看了好几遍都没有发现哪里错了,最后发现float d[1001]忘了初始化定义,小伙伴们不要像我这样粗心奥。题目:This time, you are supposed to findA+BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and eac...
2021-05-26 23:43:06
61
原创 PAT甲级 1001 A+B Format
Calculatea+band 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 Specification:Each input file contains one test case. Each case contains a pair o..
2021-05-26 23:14:30
92
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人