信息学奥赛一本通T1498-Roadblocks(最短路径算法Dijkstra) 摘要:解题思路:思路在代码中,很清晰的.注意事项:求的是农场 1到农场 4的第二短的路径(路径里一定要有农场 1和农场 4).参考代码:import java.util.ArrayList; import…… 题解列表 2023年12月28日 0 点赞 0 评论 265 浏览 评分:9.9
图像相似度 摘要:解题思路:注意事项:参考代码:h,l=map(int,input().split())ls1=[]ls2=[]for i in range(h): ls1.append(list(map(int…… 题解列表 2023年12月28日 0 点赞 0 评论 161 浏览 评分:0.0
3029: 逆波兰表达式 摘要:解题思路:使用栈, 遇到数字入数字栈, 遇到操作符, 在操作符栈不为空,并且数字栈的长度大于等于2时,出栈计算,结果入栈注意事项: 最后在操作符不为空时,循环出栈计算参考代码:#include<ios…… 题解列表 2023年12月28日 0 点赞 0 评论 416 浏览 评分:9.9
全排列(递归) 摘要:解题思路:在第0位选取一个字母, 依次遍历字符串每个字符,如果被选过,不要再选, 递归到下一位; 如果当前位已经达到字符串长度, 输出选中的字符注意事项: 字符串索引从0开始, 注意边界; 另外, …… 题解列表 2023年12月28日 0 点赞 0 评论 574 浏览 评分:9.9
我趣,这题直接输出也对 摘要:解题思路:无注意事项:无参考代码:#include <stdio.h>int main(){int date; date=200; printf("%d\n",date); retu…… 题解列表 2023年12月28日 0 点赞 0 评论 402 浏览 评分:9.9
c代码记录之结构体成绩统计 摘要:第一次练习结构体,略显生涩 #include struct student{ char xuehao[10],name[10]; int a,b…… 题解列表 2023年12月29日 0 点赞 0 评论 226 浏览 评分:0.0
c代码记录之结构体时间设计 摘要: #include struct Time{ int year,month,day; }_time; int main(){ s…… 题解列表 2023年12月29日 0 点赞 0 评论 170 浏览 评分:0.0
c代码记录之结构体成绩记录--函数传参 摘要: #include struct Student{ char xuehao[30],name[30]; int a,b,c; }; …… 题解列表 2023年12月29日 0 点赞 0 评论 176 浏览 评分:0.0
约瑟夫环求解 摘要:解题思路:注意事项:参考代码:n = int(input())a = 0b = 0j = -1l = []for i in range(0, n): a += 1 l.append(a)w…… 题解列表 2023年12月29日 0 点赞 0 评论 217 浏览 评分:0.0
2913: 整数去重 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=20010;int a[N];int main() { …… 题解列表 2023年12月29日 0 点赞 0 评论 255 浏览 评分:0.0