【稳定做法】求小数的某一位-模拟列竖式 摘要:前排题解基本用浮点数运算,但是对于 $$ n \leq 10000$$ 的数据范围来说理论上都是错误的,无论是 `double` 还是 `long double` 在 $$ 10 ^ {10000}$…… 题解列表 2023年10月30日 0 点赞 0 评论 295 浏览 评分:9.9
鸡尾酒疗法题解-浮点数运算 摘要:#### 参考代码 ``` #include int main() { int n; double x, y; scanf("%d%lf%lf", &n, &x, &y); …… 题解列表 2023年10月30日 0 点赞 0 评论 353 浏览 评分:9.9
c++字符串简单解法 遍历字符串 摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str…… 题解列表 2023年10月30日 0 点赞 0 评论 204 浏览 评分:0.0
2757: 浮点数向零舍入 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { double …… 题解列表 2023年10月30日 0 点赞 0 评论 281 浏览 评分:0.0
2620: 蓝桥杯2021年第十二届国赛真题-大写 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { strin…… 题解列表 2023年10月30日 0 点赞 0 评论 244 浏览 评分:0.0
编写题解 2554: 交点 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2023年10月30日 0 点赞 0 评论 219 浏览 评分:0.0
2547: [CSP-J2019] 数字游戏 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str; int cou…… 题解列表 2023年10月30日 0 点赞 0 评论 260 浏览 评分:0.0
2544: N以内累加求和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,sum=0; cin>>n…… 题解列表 2023年10月30日 0 点赞 0 评论 250 浏览 评分:0.0
2543: 简单计算机器实现 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { int a…… 题解列表 2023年10月30日 0 点赞 0 评论 218 浏览 评分:9.9
2333: 信息学奥赛一本通T1182-合影效果 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; struct student{ str…… 题解列表 2023年10月30日 0 点赞 0 评论 253 浏览 评分:0.0