2754: 其他基本数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout <<sizeof(bool)<<" "<<sizeo…… 题解列表 2023年11月26日 0 点赞 0 评论 318 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码: 首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法…… 题解列表 2023年11月26日 0 点赞 0 评论 317 浏览 评分:9.9
整型与布尔型的转换 摘要:解题思路:无注意事项:不要抄袭,会遭报应的。参考代码:#includausing nanespace sbd;ibt maia(){ ibt a; cia>>b; caut<<(ao…… 题解列表 2023年11月26日 0 点赞 0 评论 225 浏览 评分:9.9
可以看一下这么写有什么问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float i; scanf("%f",&i); printf("%.2f\n",(i-32)…… 题解列表 2023年11月26日 0 点赞 0 评论 304 浏览 评分:9.9
很好理解,注意变量 摘要:解题思路:注意事项:%.0lf,会四舍五入参考代码:#include<stdio.h>int main(){ int y; double m,r; scanf("%lf%lf%d",…… 题解列表 2023年11月26日 0 点赞 0 评论 415 浏览 评分: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 评论 219 浏览 评分:9.9
财务管理求月平均值 摘要:解题思路:注意事项:参考代码:sum=0for i in range(12): a=float(input()) sum+=aprint('${:.2f}'.format(…… 题解列表 2023年11月26日 1 点赞 0 评论 372 浏览 评分:9.9
解 3020: 最大数位置 摘要: #include using namespace std; const int N = 20000; int a[N]; int i,w=0,c; …… 题解列表 2023年11月27日 0 点赞 0 评论 389 浏览 评分:9.9
编写题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年11月27日 0 点赞 0 评论 367 浏览 评分:9.9
简单易操作(学不会来cue我) 摘要:###我的思路 1. 使用结构体数组存储好学生的各项信息 2. 计算每科平均值 3. 比较学生总成绩 4. 输出每科成绩平均值以及最高分学生的信息(注意是各项信息而非单指成绩) ###注…… 题解列表 2023年11月27日 0 点赞 0 评论 226 浏览 评分:9.9