C语言训练-排序问题<1> (C++代码) 摘要:解题思路:sort 排序大法注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a[4]; for(…… 题解列表 2019年04月21日 0 点赞 0 评论 549 浏览 评分:0.0
C语言训练-数字母 (C++代码) 摘要:解题思路:写个判断函数 判断字符串是否是字符 注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char str…… 题解列表 2019年04月21日 0 点赞 0 评论 643 浏览 评分:0.0
DNA (C语言代码) 摘要:解题思路:先打印第一行后面每组打印都少第一段注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int t; scanf("%…… 题解列表 2019年04月21日 0 点赞 0 评论 576 浏览 评分:0.0
迷宫问题 (C++代码) 摘要:解题思路:宽度优先搜索的常规题注意事项:需要注意判断:如果不存在通路需要返回-1(否则只能过50%,存在一半的数据);参考代码:#include <iostream>#include <algorit…… 题解列表 2019年04月21日 0 点赞 0 评论 581 浏览 评分:0.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i, a[100], s = 0; scanf("%d", &n); for(i…… 题解列表 2019年04月22日 0 点赞 0 评论 720 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define qy(a,b) a%bint main(){int a,b; scanf("%d %d",&a,&b); p…… 题解列表 2019年04月22日 2 点赞 0 评论 906 浏览 评分:0.0
C语言考试练习题_排列 (C语言代码) 摘要:#include <stdio.h> int main() { int i,j,k,m; int a[4]; int b[3]; for(i=0;i<4;i…… 题解列表 2019年04月22日 1 点赞 0 评论 755 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> #define S(a,b,c) (a+b+c)/2 #define area(a,b,c…… 题解列表 2019年04月22日 2 点赞 0 评论 1037 浏览 评分:0.0
老王赛马 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sum;int a[1050],b[1050];void sort(int c[],int n){ int i,j,k; for…… 题解列表 2019年04月22日 0 点赞 0 评论 961 浏览 评分:0.0
回文串 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int f(char a[]){ int i,j,k; k=strlen(a); for(i=0,j…… 题解列表 2019年04月22日 0 点赞 0 评论 736 浏览 评分:0.0