约瑟夫环——用循环链表来解决 ```javapackageACM;importjava.util.Scanner;publicclassACMJosepfu{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);while(scanner.h 题解列表 2022年11月24日 0 点赞 0 评论 733 浏览 评分:9.9
深度优先搜索(C语言) 摘要:求助!运行错误55,不知道哪错了,大佬帮忙找找bug参考代码:#include<stdio.h> #include<stdlib.h> //#include<string.h> //字符串操作文件…… 题解列表 2022年11月24日 0 点赞 0 评论 784 浏览 评分:9.9
废物废物废物废物废物废物废物是我 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[20]; fgets(str,20,stdin…… 题解列表 2022年11月24日 0 点赞 3 评论 1002 浏览 评分:9.9
编写题解 2922: 合影效果,写的太差了,望指正 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>typedef struct{ char xb[8]; float high;}stu;…… 题解列表 2022年11月24日 0 点赞 0 评论 780 浏览 评分:9.9
亲密数简化编译C语言,初学者 解题思路:参考了很多解法,很多复杂度比较高,提交的话时间会超时,思路都大同小异都是利用循环判断要么的话就比较难懂,对初学者不是那么友好下面是我看到的并且认为比较巧妙也比较好懂的一种解法由题目可以很好理解亲密数的定义,那么我们假设A与B为一对亲密数, 题解列表 2022年11月24日 0 点赞 1 评论 780 浏览 评分:9.9
现学现卖系列,c语言,动态空间分配,较为正规的解法!!! 摘要:解题思路:运用动态空间的开辟与分配来解决问题。注意事项:注意m,n,之间的数量关系参考代码:#include<stdio.h> #include<stdlib.h> int main() { …… 题解列表 2022年11月24日 0 点赞 0 评论 534 浏览 评分:9.9
N进制的加,C语言 #include#include#defineN10//进制数#defineM'9'//进制数-1voidreverse(char*c,intl,intr){//逆序while(l 题解列表 2022年11月24日 0 点赞 0 评论 654 浏览 评分:9.9 超简单的C++ 摘要:参考代码:#include<iostream> using namespace std; int main() { long long int sum; long long …… 题解列表 2022年11月24日 0 点赞 0 评论 706 浏览 评分:9.9 出圈(约瑟夫环)问题---用C语言解决 摘要:```c #include int main(void) { int n,m; while(scanf("%d%d", &n,&m)!=EOF) { int row[n]; …… 题解列表 2022年11月25日 0 点赞 0 评论 994 浏览 评分:9.9 Kruskal 求最小生成树+ 并查集 摘要:解题思路: 看不加码头能不能构成最小生成树,如果不可以,则答案为加上码头和建路的最小生成树, ,,,如果可以,则在不加码头和 加上码头的最小生成树取最小值注意事项:建议把初始化码头和把码头的边加…… 题解列表 2022年11月25日 0 点赞 0 评论 820 浏览 评分:9.9 « 12...5278527952805281528252835284...59245925 »
超简单的C++ 摘要:参考代码:#include<iostream> using namespace std; int main() { long long int sum; long long …… 题解列表 2022年11月24日 0 点赞 0 评论 706 浏览 评分:9.9
出圈(约瑟夫环)问题---用C语言解决 摘要:```c #include int main(void) { int n,m; while(scanf("%d%d", &n,&m)!=EOF) { int row[n]; …… 题解列表 2022年11月25日 0 点赞 0 评论 994 浏览 评分:9.9
Kruskal 求最小生成树+ 并查集 摘要:解题思路: 看不加码头能不能构成最小生成树,如果不可以,则答案为加上码头和建路的最小生成树, ,,,如果可以,则在不加码头和 加上码头的最小生成树取最小值注意事项:建议把初始化码头和把码头的边加…… 题解列表 2022年11月25日 0 点赞 0 评论 820 浏览 评分:9.9