找最大数序列 摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); int max[n]; for(int i=…… 题解列表 2023年10月30日 0 点赞 0 评论 724 浏览 评分:0.0
【稳定做法】求小数的某一位-模拟列竖式 前排题解基本用浮点数运算,但是对于$$n\leq10000$$的数据范围来说理论上都是错误的,无论是`double`还是`longdouble`在$$10^{10000}$$面前都无法保证精度正确做法应该模拟列竖式除法的过程,商只保留运算到的最后一位, 题解列表 2023年10月30日 0 点赞 0 评论 672 浏览 评分:9.9
鸡尾酒疗法题解-浮点数运算 摘要:#### 参考代码 ``` #include int main() { int n; double x, y; scanf("%d%lf%lf", &n, &x, &y); …… 题解列表 2023年10月30日 0 点赞 0 评论 690 浏览 评分:9.9
c++字符串简单解法 遍历字符串 摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str…… 题解列表 2023年10月30日 0 点赞 0 评论 582 浏览 评分:0.0
2757: 浮点数向零舍入 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { double …… 题解列表 2023年10月30日 0 点赞 0 评论 598 浏览 评分:0.0
2620: 蓝桥杯2021年第十二届国赛真题-大写 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { strin…… 题解列表 2023年10月30日 0 点赞 0 评论 562 浏览 评分:0.0
编写题解 2554: 交点 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2023年10月30日 0 点赞 0 评论 543 浏览 评分:0.0
2547: [CSP-J2019] 数字游戏 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str; int cou…… 题解列表 2023年10月30日 0 点赞 0 评论 574 浏览 评分:0.0
2544: N以内累加求和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,sum=0; cin>>n…… 题解列表 2023年10月30日 0 点赞 0 评论 588 浏览 评分:0.0
2543: 简单计算机器实现 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { int a…… 题解列表 2023年10月30日 0 点赞 0 评论 562 浏览 评分:9.9