摘要: 题目来源:https://pintia.cn/problem-sets/994805342720868352/problems/994805456881434624 由于之前在学习数据结构和算法时,学校禁止使用C++ STL,所以现在刷算法时STL中很多趁手武器不会用,惭愧... 本题重点之一是映射 阅读全文
posted @ 2022-06-25 19:53 from-ancient 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 问题提出:对于双精度double类型的浮点数,如何判断是否为“整数”? 例子: double a = 1.23 if ((long long)a - a == 0) { long long ans = (long long)mid; printf("%ld",ans); }else printf(" 阅读全文
posted @ 2022-06-21 22:05 from-ancient 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 立志宜思真品格 读书须尽苦功夫 ——共勉 阅读全文
posted @ 2022-06-14 21:37 from-ancient 阅读(3) 评论(0) 推荐(0) 编辑