可以看一下这么写有什么问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float i; scanf("%f",&i); printf("%.2f\n",(i-32)…… 题解列表 2023年11月26日 0 点赞 0 评论 281 浏览 评分:9.9
很好理解,注意变量 摘要:解题思路:注意事项:%.0lf,会四舍五入参考代码:#include<stdio.h>int main(){ int y; double m,r; scanf("%lf%lf%d",…… 题解列表 2023年11月26日 0 点赞 0 评论 390 浏览 评分:9.9
精简一下,如果还有更精简的请大佬评论 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,s=0; scanf("%d",&n); for(i=2;n>0;i+=3,n--) s+=…… 题解列表 2023年11月26日 0 点赞 0 评论 192 浏览 评分:9.9
财务管理求月平均值 摘要:解题思路:注意事项:参考代码:sum=0for i in range(12): a=float(input()) sum+=aprint('${:.2f}'.format(…… 题解列表 2023年11月26日 1 点赞 0 评论 348 浏览 评分:9.9
解 3020: 最大数位置 摘要: #include using namespace std; const int N = 20000; int a[N]; int i,w=0,c; …… 题解列表 2023年11月27日 0 点赞 0 评论 365 浏览 评分:9.9
编写题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年11月27日 0 点赞 0 评论 339 浏览 评分:9.9
简单易操作(学不会来cue我) 摘要:###我的思路 1. 使用结构体数组存储好学生的各项信息 2. 计算每科平均值 3. 比较学生总成绩 4. 输出每科成绩平均值以及最高分学生的信息(注意是各项信息而非单指成绩) ###注…… 题解列表 2023年11月27日 0 点赞 0 评论 197 浏览 评分:9.9
答案之中的答案 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if((a>9) an…… 题解列表 2023年11月27日 0 点赞 0 评论 361 浏览 评分:9.9
利用三目运算符解决三个数找最大值问题 摘要:这道题只能说典中典。直接说方法吧。解题思路:一开始看到就想一一比较,但个人觉得这样太复杂、麻烦。有没有一种几行就能写完的代码?有!这里就运用到了三目运算符!首先在a与b中找最大的数值,接下来最大的数值…… 题解列表 2023年11月27日 0 点赞 0 评论 153 浏览 评分:9.9
2754: 其他基本数据类型存储空间大小 摘要:解题思路:使用sizeof函数输入bool和char注意事项:好人一生平安给个五星吧 让孩子涨涨积分吧 求求了参考代码:#include <bits/stdc++.h>using namespace …… 题解列表 2023年11月27日 0 点赞 0 评论 271 浏览 评分:9.9