首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
我爱陈少熙
2024年3月24日 15:48
击鼓传花 题解:非链表版
P1018
回复 0
|
赞 2
|
浏览 1.3k
#include <iostream> #include<bits/stdc++.h> using namespace std; int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++) { a[i]=i+1; }...
为欢几何
2024年3月24日 15:42
击鼓传花 题解:循环链表,AC
P1018
回复 0
|
赞 3
|
浏览 1.6k
#include<bits/stdc++.h> using namespace std; struct node { int n; struct node *next; }; //创建循环链表 struct node * create(int n) { struct node* head = (struct node*)malloc(sizeof(struct node)); head->next = NULL; ...
sssmw
2024年3月23日 21:03
击鼓传花 (c用数组实现)题解:
P1018
回复 0
|
赞 3
|
浏览 1.1k
#include <stdio.h> #include <stdlib.h> #define N 100 int main() { int n,a[N]={0},count,i,k; scanf("%d",&n); count=n; i=-1; while(count>0){//控制剩余小朋友个数 k=3; &nbs...
1576684866
2024年3月23日 15:00
击鼓传花 题解:
P1018
回复 0
|
赞 0
|
浏览 1.2k
#include <cstdio> using namespace std; #include <string.h> #include <iostream> #include <stdlib.h> typedef struct node { int number; struct node* next; }*LinkList,Node; //遍历链表 void Print(LinkList& L) {  ...
光明守护神
2024年3月10日 15:01
击鼓传花 题解:图解题目意思
P1018
回复 2
|
赞 3
|
浏览 1.7k
1 2 3 4 5 1 2 3 4 5 1 2 4 5 1 2 4 5 1 2 4 1 2 4 1 4 1 4 4 用list写一个循环链表 #include <iostream> #include <list> using namespace std; int main() { { int n; cin >> n; list<int>l; list<int>::iterator it; for (int ...
Cookie‘s AE86
2024年3月16日 09:48
击鼓传花 题解:c++自定义无头节点的循环链表实现
P1018
回复 0
|
赞 0
|
浏览 1.2k
#include<bits/stdc++.h> using namespace std; typedef struct node{ int number; struct node* next; }LiNode, *LiList; int main(){ int n; cin >> n; LiList L = (LiList) malloc(sizeof(LiNode)); L->number = 1; L->next = L; //不带头节点的循环单...
damowanghwj
2024年3月11日 17:01
击鼓传花 题解:队列实现
P1018
回复 0
|
赞 0
|
浏览 1.2k
#include <iostream> #include<cstdio> #include<vector> #include<algorithm> #include<cstring> #include<queue> using namespace std; int main(){ int n ; cin >> n; if(n == 1){ cout << 1 <<endl; return 0; ...
promising
2024年3月10日 16:42
击鼓传花 题解:
P1018
回复 0
|
赞 1
|
浏览 1.5k
#include<stdio.h> #include<stdlib.h> int main() { typedef struct LNode { int data; struct LNode *next; }LNode; int n; &nb...
熹微
2024年3月9日 16:35
击鼓传花 题解:
P1018
回复 1
|
赞 0
|
浏览 1.3k
C语言 循环数组 模拟循环链表 大家可以参考参考 #include<stdio.h> int Fac(int x,int a[],int n){ for(int i = 0;i<=n;i++) if(x == a[i]) return 1; return 0; } int main(){ int n,cu...
1935569240
2024年3月5日 20:25
击鼓传花 题解:模拟过程即可
P1018
回复 0
|
赞 2
|
浏览 1.8k
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { int data; struct node * next; }; struct node* create(int n) { struct node *head=NULL,*q; for (int ...
1
2
3
4
5
6
7
题目
击鼓传花
题解数量
63
发布题解
在线答疑
热门题解
1
击鼓传花 题解:循环链表解决
2
击鼓传花 题解:(C语言、用数组解决)
3
击鼓传花 题解:鄙人认为,约瑟夫环问题用队列就是最容易理解的
4
击鼓传花 题解:尾插法循环单链表(纯C)
5
击鼓传花 题解:谁家的古风小孩可爱捏
6
击鼓传花 题解:vector手撕约瑟夫
7
击鼓传花 题解:链表模拟
8
击鼓传花 题解:c++,循环单链表
9
击鼓传花 题解:不使用循环队列,用数组循环的方式来实现
10
击鼓传花 题解: