题解 1764: 循环入门练习1(最简单) 摘要:解题思路:注意事项:参考代码:#include <iostream>int main(){ std::cout<<1001*500; return 0;}…… 题解列表 2024年01月08日 0 点赞 0 评论 196 浏览 评分:9.9
2544: N以内累加求和(超简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年01月08日 0 点赞 0 评论 131 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int m…… 题解列表 2024年01月08日 0 点赞 0 评论 134 浏览 评分:0.0
自由下落的距离计算 摘要:解题思路: 第一次路径是初始小球距离地面的距离,以后的路径都是初始距离的一半再乘2(因为弹起和落下两次距离是相同的)。注意事项: 注意审题,总路径是第N次之前的总路径,不包括第N次弹起和落…… 题解列表 2024年01月07日 0 点赞 0 评论 211 浏览 评分:9.9
bmi体质指数测试器 摘要:解题思路:注意事项:这不是这道题的题解!!!这不是这道题的题解!!!这不是这道题的题解!!!重要的事情说三遍参考代码:#include <bits/stdc++.h>using namespace s…… 题解列表 2024年01月07日 0 点赞 0 评论 453 浏览 评分:9.9
编写题解 2790: 分段函数 摘要:解题思路:注意事项:用小数类型定义;改头文件参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; c…… 题解列表 2024年01月07日 0 点赞 0 评论 152 浏览 评分:7.3
题解 3008: 买笔 摘要:解题思路:注意事项:?参考代码:#include <iostream>using namespace std;int main(){ int x; cin>>x; if(x%4==…… 题解列表 2024年01月07日 0 点赞 1 评论 256 浏览 评分:9.9
c++买笔c++买笔c++买笔c++买笔c++买笔 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int x; cin>>x; if(x%4==0)…… 题解列表 2024年01月07日 0 点赞 1 评论 149 浏览 评分:6.0
2790: 分段函数 摘要:解题思路:注意事项:要使用浮点数定义参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >…… 题解列表 2024年01月07日 0 点赞 0 评论 143 浏览 评分:9.9
编写题解 3008: 买笔(if语句解法) 摘要:解题思路:若想让笔的数量最大,应优先购买4元的。以4为基准求余:剩1元,则4元钱的笔少买1支,换成1支5元笔;剩2元,则4元钱的笔少买1支,换成1支6元笔;剩3元,则4元钱的笔少买2支,换成1支5元笔…… 题解列表 2024年01月07日 0 点赞 0 评论 117 浏览 评分:0.0