图的遍历——BFS广度优先搜索 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int mapsize=55; int Map[mapsize…… 题解列表 2022年04月07日 0 点赞 0 评论 889 浏览 评分:0.0
转换字符【c++】 摘要:```cpp #include using namespace std; int main(){ string s1, s2, s3 = "", s4 =""; cin >> …… 题解列表 2022年04月07日 0 点赞 0 评论 644 浏览 评分:0.0
C语言训练-最大数问题 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int a[1000], max,i=0; scanf("%d", &a[0]); max = a…… 题解列表 2022年04月07日 0 点赞 0 评论 564 浏览 评分:0.0
时间转换【C++】 摘要:```cpp #include using namespace std; int main(){ int t; cin >> t; int shi = t / 3600; …… 题解列表 2022年04月07日 0 点赞 0 评论 705 浏览 评分:0.0
C++ 究极三目运算符 摘要:解题思路:注意事项:参考代码:#include<cstring>#include<stdio.h>int main(){ int n,t,k,j,i=1;char c[124][124]; …… 题解列表 2022年04月07日 0 点赞 0 评论 730 浏览 评分:0.0
1047: [编程入门]报数问题——约瑟夫环——超容易理解版 解题思路:刚开始把所有的人放到一个列表里面去,报的数字不是3就把这个人放到列表的最后一个位置上面去,如果是3就把这个数字从列表中去掉。直到列表剩下一个人为止注意事项:参考代码:n=int(input())l=list(range(1,n+1))#l=[1, 题解列表 2022年04月07日 0 点赞 0 评论 744 浏览 评分:0.0
1668:printf基础练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a; scanf("%d",&a); printf("%#o %#d %#x\n",a,a…… 题解列表 2022年04月07日 0 点赞 0 评论 601 浏览 评分:0.0
1806输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a, &b, &c); printf("%d…… 题解列表 2022年04月07日 0 点赞 0 评论 759 浏览 评分:0.0
1807:输入输出练习之格shi 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d %d %d",&a,&b,&c);printf("%-8d%-8d%-8d…… 题解列表 2022年04月07日 0 点赞 0 评论 791 浏览 评分:0.0
1807:输入输出练习之格式控制 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d %d %d",&a,&b,&c);printf("%-8d%-8d%-8d…… 题解列表 2022年04月07日 0 点赞 0 评论 664 浏览 评分:0.0