二级C语言-等差数列 摘要:解题思路:利用高中学过的等差数列前n项和的公式:n*a+n*(n-1)*d/2即可解。其中a为第一项,d为公差,在这里a=2,d=3.注意事项:参考代码:#include<stdio.h> int m…… 题解列表 2023年12月05日 0 点赞 0 评论 183 浏览 评分:0.0
简单易懂,求圆的面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){double a,d;cin >> a;d=a*a*3.141…… 题解列表 2023年12月05日 0 点赞 0 评论 531 浏览 评分:0.0
1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,s,d,f;cin >> s;cin >> a;d…… 题解列表 2023年12月05日 0 点赞 0 评论 225 浏览 评分:0.0
1012字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){char c;int letters=0,space=0,dight=0,other=0;while((c=ge…… 题解列表 2023年12月05日 0 点赞 0 评论 182 浏览 评分:0.0
选择排序1023 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){void sort(int array[],int n);int a[10],i;for(i=0;i<10;i+…… 题解列表 2023年12月05日 0 点赞 0 评论 161 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct sjb { int year; int month; int day;} sj;int main(){ int sum =…… 题解列表 2023年12月05日 0 点赞 0 评论 438 浏览 评分:0.0
2775: 等差数列末项计算 摘要:解题思路:注意事项:b比a大所以先写b,最后加a。参考代码:#include <iostream>using namespace std;int main(){ int a,b,n; ci…… 题解列表 2023年12月05日 0 点赞 0 评论 193 浏览 评分:9.9
2773: 计算线段长度 摘要:解题思路:注意事项:要按题目给的顺序写参考代码:#include<bits/stdc++.h>using namespace std;yaybint main(){ double xa, xb,…… 题解列表 2023年12月05日 0 点赞 0 评论 261 浏览 评分:9.9
2878: 计算矩阵边缘元素之和 python实现,超简单的思路 摘要:解题思路:我看有的同学用的蛇形矩阵思路来做的,我想的是,既然只要是边缘的值,那我直接用i和j判定。i=0/m-1的时候就是在第一行或者最后一行,j=0/n-1的时候,就是第一列或者最后一列,遇到这种直…… 题解列表 2023年12月05日 0 点赞 0 评论 340 浏览 评分:10.0
2877: 同行列对角线的格子 Python实现,带注释 摘要:解题思路:之前一直想推出 对角线的坐标,后面发现方向错了,看了其他大佬的发现需要用规律来做主对角线的规律是,两个坐标作差相等;副对角线的规律是,两个坐标的和相等;注意事项:0参考代码:N, i, j …… 题解列表 2023年12月05日 0 点赞 2 评论 461 浏览 评分:9.9