1979: 求平均工资 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int n; …… 题解列表 2023年10月17日 1 点赞 0 评论 136 浏览 评分:10.0
计算输入数据的和与乘积(用char数组存) 摘要:参考代码: ```c #include #include int main() { char a[100]; gets(a); int len=strlen(a); int …… 题解列表 2023年10月28日 0 点赞 0 评论 195 浏览 评分:10.0
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int Weishu(int n)//判断位数{ int i = 0; while (n …… 题解列表 2023年10月31日 0 点赞 0 评论 246 浏览 评分:10.0
蓝桥杯算法训练-数据交换 摘要:参考代码: ```c #include void swap(int *x,int *y) { int t=*x; *x=*y; *y=t; } int mai…… 题解列表 2023年10月31日 0 点赞 0 评论 124 浏览 评分:10.0
C++_dfs容易理解 摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar…… 题解列表 2023年11月05日 0 点赞 1 评论 243 浏览 评分:10.0
题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,b1=0,c1=0,d1=0,s; …… 题解列表 2023年11月06日 1 点赞 0 评论 109 浏览 评分:10.0
优质题解 校门外的树 摘要:解题思路:1.把这条道路上树的总数用一个数组装起来,把这个数组的每个元素都先定义为0;2.确定地铁区域,用双循环,外循环确定有多少个铁路区域;内循环用来给铁路区域做处理,并让此区域中对应所有的数组元素…… 题解列表 2023年11月10日 2 点赞 3 评论 1099 浏览 评分:10.0
成绩排序(答案错误只有50分的试试把name数组空间改为101) 摘要:参考代码: ```c #include #include struct student { char name[101];//字符串后面要有个空 int age; …… 题解列表 2023年11月15日 1 点赞 1 评论 125 浏览 评分:10.0
换一个高精度的就行 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void main(){ double n,m,s; scanf("%lf%lf",&n,&m); s=n-0.8*m; printf…… 题解列表 2023年11月15日 1 点赞 0 评论 156 浏览 评分:10.0
2058: [STL训练]Who's in the Middle 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[10000],i,t,j; scanf("%d",&n); for (i=0;i<n;i++)…… 题解列表 2023年11月16日 1 点赞 0 评论 326 浏览 评分:10.0