[编程入门]宏定义的练习 (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 评论 1018 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define swep(x,y) t=x,x=y,y=tint main(){int a,b,t; scanf("%d %d",…… 题解列表 2019年04月22日 2 点赞 0 评论 1209 浏览 评分:6.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 评论 846 浏览 评分:0.0
[编程入门]Sn的公式求和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <math.h>#include <stdio.h>int main(){ int n, i; int Sn=0; int sum =…… 题解列表 2019年04月21日 3 点赞 0 评论 970 浏览 评分:7.3
迷宫问题 (C++代码) 摘要:解题思路:宽度优先搜索的常规题注意事项:需要注意判断:如果不存在通路需要返回-1(否则只能过50%,存在一半的数据);参考代码:#include <iostream>#include <algorit…… 题解列表 2019年04月21日 0 点赞 0 评论 659 浏览 评分:0.0
纪念品分组 (C语言代码) 摘要:贪心?动态规划?反正头已经晕了 凑活着看吧注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int a[200000];//数组开大一点void sort(i…… 题解列表 2019年04月21日 0 点赞 0 评论 1626 浏览 评分:6.7
DNA (C语言代码) 摘要:解题思路:先打印第一行后面每组打印都少第一段注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int t; scanf("%…… 题解列表 2019年04月21日 0 点赞 0 评论 691 浏览 评分:0.0
C语言训练-数字母 (C++代码) 摘要:解题思路:写个判断函数 判断字符串是否是字符 注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char str…… 题解列表 2019年04月21日 0 点赞 0 评论 739 浏览 评分:0.0
C语言训练-排序问题<2> (C++代码) 摘要:解题思路:sort 自定义排序规则注意事项:参考代码:#include <bits/stdc++.h>using namespace std;bool cmp(int a,int b){ return…… 题解列表 2019年04月21日 0 点赞 0 评论 892 浏览 评分:9.9
C语言训练-排序问题<1> (C++代码) 摘要:解题思路:sort 排序大法注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a[4]; for(…… 题解列表 2019年04月21日 0 点赞 0 评论 642 浏览 评分:0.0