会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
from-ancient
博客园
首页
新随笔
联系
订阅
管理
2022年6月25日
PTA 1034 Head of a Gang C++
摘要: 题目来源:https://pintia.cn/problem-sets/994805342720868352/problems/994805456881434624 由于之前在学习数据结构和算法时,学校禁止使用C++ STL,所以现在刷算法时STL中很多趁手武器不会用,惭愧... 本题重点之一是映射
阅读全文
posted @ 2022-06-25 19:53 from-ancient
阅读(8)
评论(0)
推荐(0)
编辑
2022年6月21日
1、判断浮点数是否为整数浮点数(即小数点后是否全零)
摘要: 问题提出:对于双精度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)
编辑
2022年6月14日
第一篇博客
摘要: 立志宜思真品格 读书须尽苦功夫 ——共勉
阅读全文
posted @ 2022-06-14 21:37 from-ancient
阅读(3)
评论(0)
推荐(0)
编辑
公告