上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 struct node 5 { 6 int data; 7 struct node *left,*right; 8 }; 9 struct node * new() 阅读全文
posted @ 2019-11-17 21:37 念文丶 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 char s[2000]; 5 int num[2000],queue[2000]; 6 void so(int s[],int l,int r) 7 { 8 if( 阅读全文
posted @ 2019-11-12 21:46 念文丶 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 char s[1000]; 4 int top; 5 struct node 6 { 7 char c; 8 struct node *left, *right; 9 }; 10 struct node * c 阅读全文
posted @ 2019-11-11 21:51 念文丶 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 int n,m; 4 struct node 5 { 6 char date; 7 int left,right; 8 } tree1[12],tree2[12]; 9 void creat(struct no 阅读全文
posted @ 2019-11-11 21:30 念文丶 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #define INF 99999999 5 int map[1000][1000],dis[1000],visited[10000]; 6 int sum; 7 v 阅读全文
posted @ 2019-11-10 19:05 念文丶 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #define INF 0x3f3f3f3f 5 int map[1000][1000],visited[1000]; 6 int n,m; 7 int flag; 阅读全文
posted @ 2019-11-09 22:27 念文丶 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #define INF 0x3f3f3f3f 5 int map[1000][1000],map2[1000][1000]; 6 int n; 7 void floy 阅读全文
posted @ 2019-11-09 22:04 念文丶 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 3 public class Main { 4 public static void main(String[] args) { 5 // TODO Auto-generated method stub 6 Scanner input = 阅读全文
posted @ 2019-11-08 16:34 念文丶 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 int map[100][100],visited[100],du[100],flag,n,m,i,j,k; 5 int main() 6 { 7 while(~sc 阅读全文
posted @ 2019-11-02 18:45 念文丶 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 //这个题可以无视题目,只需要注意(如果无向图连通并且所有结点的度都是偶数,则存在欧拉回路,否则不存在。 ) 5 int map[1000][1000],visite 阅读全文
posted @ 2019-11-02 17:49 念文丶 阅读(206) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页