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