随笔分类 -  PTA甲级

摘要:C++中给出了各个变量范围的最大值和最小值 (若要使用提供的最大最小值,注意需要引入头文件) #include<climits> 或 #include<limits.h> 各变量最大取值和最小取值列表 例子 判断两个long long 类型的变量相加是否溢出 bool check(long long 阅读全文
posted @ 2023-02-23 19:41 Yohoc 阅读(180) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/a617976080/article/details/89676670 https://www.cnblogs.com/fisherss/p/12004044.html https://blog.csdn.net/xzy5210123/article/de 阅读全文
posted @ 2023-02-16 21:25 Yohoc 阅读(55) 评论(0) 推荐(0) 编辑
摘要:题目:1002 A+B for Polynomials This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains o 阅读全文
posted @ 2022-11-30 21:26 Yohoc 阅读(124) 评论(0) 推荐(0) 编辑
摘要:题目:1007 Maximum Subsequence Sum Given a sequence of K integers { N1​, N2​, ..., NK​ }. A continuous subsequence is defined to be { Ni​, Ni+1​, ..., Nj 阅读全文
posted @ 2022-11-12 16:40 Yohoc 阅读(19) 评论(0) 推荐(0) 编辑
摘要: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 th 阅读全文
posted @ 2022-11-12 14:49 Yohoc 阅读(19) 评论(0) 推荐(0) 编辑
摘要:题目 考察点A1001 A+B Format 数字相加格式化输出 简单模拟A1002 A+B for Polynomials 多项式相加 简单模拟A1003 Emergency 救援最短路径和最大救援部队 Dijkstra算法A1004 Counting Leaves DFSA1005 Spell 阅读全文
posted @ 2022-11-05 16:14 Yohoc 阅读(275) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示