求教神犇,实在调不出来了,样例过不去

P3834 【模板】可持久化线段树 2

过了
by Void_struct @ 2019-07-16 22:25:32


为什么不用if (!root) root=++cnt;而用root=++cnt;
by Void_struct @ 2019-07-16 22:25:58


@[Gary_Fang](/space/show?uid=213500) 这难道不是动态开点的过程吗QAQ
by ZEROLANE @ 2019-07-17 15:33:55


@[_東方零闇_](/space/show?uid=225318) 动态开点不是要if (!root) root=++cnt;的吗QwQ
by Void_struct @ 2019-07-17 19:41:16


@[Gary_Fang](/space/show?uid=213500) 加点但是要继承鸭
by 澪lane @ 2019-07-17 20:35:49


@[東方零闇](/space/show?uid=116460) 好吧
by Void_struct @ 2019-07-17 20:50:04


|