prim和kruskal全TLE,求助

P3366 【模板】最小生成树

回复的一律关注
by lmn985 @ 2024-08-29 21:46:18


猜测快读写挂了,因为把快读换scanf就不超时了。
by SF_bee @ 2024-08-29 21:51:51


当然,问题不止快读,因为换scanf后雀氏不TLE,但是WA
by SF_bee @ 2024-08-29 21:53:14


@[lmn985](/user/1288642) 对,如果文件不以空格或换行结尾就寄
by bladrrxy @ 2024-08-29 21:54:50


@[lmn985](/user/1288642) 没判不连通。。。
by bladrrxy @ 2024-08-29 21:58:08


你快读错了,笑(
by JOKER_chu @ 2024-08-29 22:01:38


谢谢大佬的指点
by lmn985 @ 2024-08-30 09:13:05


%%%%%%%%%%%.......(%*INF)
by lmn985 @ 2024-08-30 09:14:57


|