1031: [编程入门]自定义函数之字符串反转 摘要:```cpp #include int main() { char s[1000]; gets(s); int len=strlen(s); for(int i=len-1;i>…… 题解列表 2022年12月06日 0 点赞 0 评论 255 浏览 评分:9.9
1046: [编程入门]自定义函数之数字后移 摘要:```cpp #include #define N 1005 int a[N]; int main() { int i,n,m; scanf("%d",&n); for(i=0;…… 题解列表 2022年12月06日 0 点赞 0 评论 192 浏览 评分:9.9
1045: [编程入门]自定义函数之整数处理 摘要:```cpp #include using namespace std; int a[10],i,maxx=0,minn=10000,m,n; void scanf() { for(i=…… 题解列表 2022年12月06日 0 点赞 0 评论 248 浏览 评分:9.9
1035: [编程入门]自定义函数之字符类型统计 摘要:```cpp #include int zimu=0,num=0,kong=0,other=0,i; int main() { char s[1000]; gets(s); int…… 题解列表 2022年12月06日 0 点赞 0 评论 305 浏览 评分:9.9
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;queue<char>mem;int main(){ int i; char a; …… 题解列表 2022年12月06日 0 点赞 0 评论 262 浏览 评分:9.9
1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>int ha[3][3];int main(){ int a[3][3],i,j; for(i=0;i<3;i++) { …… 题解列表 2022年12月05日 0 点赞 0 评论 208 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>int main(){ int n,cout=0,i; scanf("%d",&n); if(n<=1) { printf…… 题解列表 2022年12月05日 0 点赞 0 评论 154 浏览 评分:9.9
1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>double sum1,m;double jie(int a,int b,int c){ m=b*b-4*a*c; sum1…… 题解列表 2022年12月05日 0 点赞 0 评论 199 浏览 评分:9.9
1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>int main(){ int n,a[10][10],i,j,sum=0; scanf("%d",&n); for(i=0…… 题解列表 2022年12月05日 0 点赞 0 评论 191 浏览 评分:9.0
编写题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>int main(){ int i,a[9]; for(i=0;i<9;i++) { scanf("%d",&a[i]);…… 题解列表 2022年12月05日 0 点赞 0 评论 568 浏览 评分:9.9