2547: [CSP-J2019] 数字游戏 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str; int cou…… 题解列表 2023年10月30日 0 点赞 0 评论 382 浏览 评分:0.0
编写题解 2554: 交点 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2023年10月30日 0 点赞 0 评论 316 浏览 评分:0.0
2620: 蓝桥杯2021年第十二届国赛真题-大写 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { strin…… 题解列表 2023年10月30日 0 点赞 0 评论 353 浏览 评分:0.0
2757: 浮点数向零舍入 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { double …… 题解列表 2023年10月30日 0 点赞 0 评论 399 浏览 评分:0.0
c++字符串简单解法 遍历字符串 摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str…… 题解列表 2023年10月30日 0 点赞 0 评论 327 浏览 评分:0.0
鸡尾酒疗法题解-浮点数运算 摘要:#### 参考代码 ``` #include int main() { int n; double x, y; scanf("%d%lf%lf", &n, &x, &y); …… 题解列表 2023年10月30日 0 点赞 0 评论 472 浏览 评分:9.9
【稳定做法】求小数的某一位-模拟列竖式 摘要:前排题解基本用浮点数运算,但是对于 $$ n \leq 10000$$ 的数据范围来说理论上都是错误的,无论是 `double` 还是 `long double` 在 $$ 10 ^ {10000}$…… 题解列表 2023年10月30日 0 点赞 0 评论 409 浏览 评分:9.9
找最大数序列 摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); int max[n]; for(int i=…… 题解列表 2023年10月30日 0 点赞 0 评论 482 浏览 评分:0.0
财务管理!!!! 摘要:解题思路:注意事项:参考代码:a1=0a3=0while a1<12: a2=float(input()) a3+=a2 a1+=1a4=a3/12print("$%.2f"%a4)…… 题解列表 2023年10月30日 0 点赞 0 评论 555 浏览 评分:9.9
连续出现的字符 摘要:参考代码: ```c #include #include int main() { int k; scanf("%d",&k); char a[1000]; scanf("%…… 题解列表 2023年10月30日 0 点赞 0 评论 331 浏览 评分:0.0