误落迷宫2-bfs=java 摘要:解题思路:将起点,结果,三夫人的位置记录下来bfs两次,第一次找到夫人的最短路劲,第二次是出口注意事项:TES都是可以走的。参考代码: import java.util.LinkedList; …… 题解列表 2022年06月13日 0 点赞 0 评论 377 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> #include<ctype.h> char get(char ls[],int num[…… 题解列表 2022年06月13日 0 点赞 0 评论 406 浏览 评分: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 评论 301 浏览 评分: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 评论 423 浏览 评分: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 评论 300 浏览 评分:0.0
是人都能看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct chengji{ char xuehao[100]; char mingzi[100]; int c1;…… 题解列表 2022年06月13日 0 点赞 1 评论 334 浏览 评分:8.0
1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define LEAP_YEAR(y) ((y%4==0&&y%100!=0)||(y%400==0))?putchar('…… 题解列表 2022年06月13日 0 点赞 0 评论 379 浏览 评分: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 评论 245 浏览 评分: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 评论 348 浏览 评分:0.0
[编程入门]带参数宏定义练习之两参数值的互换 摘要:解题思路:C语言中进行两个参数的值互换时,最简单易懂且最常用的方法是定义一个临时变量temp来保存a的值,然后将b的值赋值给a,最后再把temp的值赋给b。从而达到交换值的目的,用编程语言表示就是:t…… 题解列表 2022年06月13日 0 点赞 0 评论 748 浏览 评分:9.9