只需要写出一种规律,就可以复制粘贴了 摘要:解题思想: 如果从左边开始考虑的话,那么我们就要把插入数字后的一堆数字同时往后移动一位,但是这样不够简洁,所以我们可以从这些数字的右边向左边一项一项的比较,而且我们每次只用移动一位就可以。注意事…… 题解列表 2022年12月31日 0 点赞 0 评论 297 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n,sum=0,m; scanf("%d",&n); m=n; for(int i=…… 题解列表 2022年12月31日 0 点赞 0 评论 278 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,n; for(i=1;i<10;i++) { for(j=0…… 题解列表 2022年12月31日 0 点赞 0 评论 246 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,sum=0; scanf("%d",&n); while(~scanf("%d",&m)) { …… 题解列表 2022年12月31日 0 点赞 0 评论 233 浏览 评分:0.0
1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int func(int x); int main() { int a,n; int sum = 0; …… 题解列表 2022年12月31日 0 点赞 0 评论 188 浏览 评分:0.0
1091: A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int func(int x,int y); int main() { int n, j; int sum = 0;…… 题解列表 2022年12月31日 0 点赞 0 评论 289 浏览 评分:0.0
c++排序问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){ int a[4]={0}; in…… 题解列表 2022年12月31日 0 点赞 0 评论 266 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> int main() { double a, b, c; double x1, …… 题解列表 2022年12月31日 0 点赞 0 评论 187 浏览 评分:0.0
2760: 整型与布尔型的转换(细节) 摘要:####这样写,在编译器上能过,但提交后会显示编译错误 ```c #include int main() { int a,b; bool c; scanf("%d",&a); …… 题解列表 2023年01月01日 1 点赞 0 评论 677 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[100][100]; int n,i,j; int sum…… 题解列表 2023年01月01日 0 点赞 0 评论 219 浏览 评分:0.0