摘要: PAT1047 1047 Student List for Course (25分) Zhejiang University has... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(27) 评论(0) 推荐(0)
摘要: PAT1039 1039 Course List for Student (25分) Zhejiang University has... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(22) 评论(0) 推荐(0)
摘要: PATA1054 1054 The Dominant Color (20分) Behind the scenes in the co... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(27) 评论(0) 推荐(0)
摘要: 题目链接 A B C D E A. Minimal Square time limit per test2 seconds memo... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(72) 评论(0) 推荐(0)
摘要: 坑点:溢出,当表现为负溢出,当a,b都大于0时,表示a+b>c,当表现为正溢出,且当a,b都小于0,时表示a+busing name... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(24) 评论(0) 推荐(0)
摘要: 题目链接 思路:用前缀和计算前缀的和为多少,然后判断两种方法直接到还是走两段的付出少,记为ans 代码: #includeusing... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(24) 评论(0) 推荐(0)
摘要: 题目链接 代码: #include#include#includeusing namespace std;const int N =... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(24) 评论(0) 推荐(0)
摘要: 题目链接 代码: #include#includeusing namespace std;const int maxn=1004;s... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(27) 评论(0) 推荐(0)
摘要: 题目链接 代码: #include#includeusing namespace std;struct node{ double a... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(24) 评论(0) 推荐(0)
摘要: 题目链接 代码 #include#include#includeusing namespace std;struct node{ s... 阅读全文
posted @ 2022-05-11 21:01 爱xiaoyi 阅读(23) 评论(0) 推荐(0)