树剖莫名八十, 求助..

P3833 [SHOI2012] 魔法树

@[Viston](/space/show?uid=107101) 召唤 $dalao$
by EndSaH @ 2018-10-23 19:14:10


@[HNYLMS_EndSaH](/space/show?uid=91252) Orz@HNFMS朗才尽江淹 这位天天肝树剖的大佬
by Viston @ 2018-10-23 20:03:39


@[HNFMS郎才尽江淹](/space/show?uid=88567)
by Viston @ 2018-10-23 20:03:54


他吐槽了你一句树剖打的为何如此之长
by Viston @ 2018-10-23 20:09:44


好的他用30min码完了
by Viston @ 2018-10-23 20:41:20


@[Viston](/space/show?uid=107101) 找出来了...我跳的时候跳错了 我的WA代码是这样的 ```cpp while(top[x] != top[y]) { if(dep[x] < dep[y]) std::swap(x, y); } ``` 实际上 ```cpp while(top[x] != top[y]) { if(dep[top[x]] < dep[top[y]]) std::swap(x, y); } ```
by EndSaH @ 2018-10-26 13:45:24


@[HNFMS郎才尽江淹](/space/show?uid=88567) 实际上我的读入输出优化就已经占了$80$行左右 我花括号换行 实际上这样子差不多有这么多行233
by EndSaH @ 2018-10-26 13:46:48


@[HNYLMS_EndSaH](/space/show?uid=91252) FREAD dalao TQL%%%
by Viston @ 2018-10-26 13:51:10


@[Viston](/space/show?uid=107101) $fread$ 并不稀奇...我旁边 $dalao$ 有各种诡异的读优 什么 $gets$ $mmap$(最快) 啥啥的 反正写了板子每道题都能用就很舒服 ~~这也间接导致我写个 a+b 都有100行~~
by EndSaH @ 2018-10-26 13:54:44


@[HNYLMS_EndSaH](/space/show?uid=91252) 终于找到大括号换行的队友了
by lzk5627 @ 2018-10-26 14:04:22


| 下一页