08 2021 档案
摘要:题目描述 所谓一个朋友圈子,不一定其中的人都互相直接认识。 例如:小张的朋友是小李,小李的朋友是小王,那么他们三个人属于一个朋友圈。 现在给出一些人的朋友关系,人按照从 1到 n编号在这中间会进行询问某两个人是否属于一个朋友圈,请你编写程序,实现这个过程。 输 入 第一行输入两个整数 n
阅读全文
摘要:#include <stdio.h> #include <time.h> #include <stdlib.h> #define swap(a, b) ({\ __typeof(a) c = a;\ a = b, b = c;\ }) int down_updata (int *p, int i,
阅读全文
摘要:#include <stdio.h> #include <time.h> #include <stdlib.h> #define swape(a, b) ({\ __typeof(a) temp = a;\ a = b; b = temp;\ }) typedef struct priority_q
阅读全文

浙公网安备 33010602011771号