1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,num[4],i; scanf("%d",&a); while(a){ num…… 题解列表 2022年06月13日 0 点赞 0 评论 287 浏览 评分:0.0
倒杨辉三角形-java 摘要:解题思路:先吧杨辉三角形装入集合开始和结尾都是1,yh[i][j] = yh[i-1][j-1] + yh[i-1][j]难的是遍历格式。注意事项:参考代码:import java.util.Scan…… 题解列表 2022年06月13日 0 点赞 0 评论 352 浏览 评分:0.0
误落迷宫2-bfs=java 摘要:解题思路:将起点,结果,三夫人的位置记录下来bfs两次,第一次找到夫人的最短路劲,第二次是出口注意事项:TES都是可以走的。参考代码: import java.util.LinkedList; …… 题解列表 2022年06月13日 0 点赞 0 评论 259 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> #include<ctype.h> char get(char ls[],int num[…… 题解列表 2022年06月13日 0 点赞 0 评论 263 浏览 评分:0.0
1036: [编程入门]带参数宏定义练习 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define swap(a,b) a^=b,b^=a,a^=b; int main() { int a,b; scanf(…… 题解列表 2022年06月13日 0 点赞 0 评论 231 浏览 评分:0.0
1037: [编程入门]宏定义的练习 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define swap(a,b) printf("%d",a%b); int main() { int a,b; scan…… 题解列表 2022年06月13日 0 点赞 0 评论 334 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define swap(a,b,c) s=(a+b+c)/2; #define get(a,b,c,s) area=pow((s…… 题解列表 2022年06月13日 0 点赞 0 评论 225 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define LEAP_YEAR(y) ((y%4==0&&y%100!=0)||(y%400==0))?putchar('…… 题解列表 2022年06月13日 0 点赞 0 评论 299 浏览 评分:0.0
1040: [编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { float d; scanf("%f",&d); for(int i=1;i<4;i++){ …… 题解列表 2022年06月13日 0 点赞 0 评论 189 浏览 评分:0.0
1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max(a,b,c) mx=a>b?a:b;mx=mx>c?mx:c; float ma(float a,floa…… 题解列表 2022年06月13日 0 点赞 0 评论 260 浏览 评分:0.0