Warning: session_start(): open(/tmp/sess_17e2b502cad1265789d513a6952be065, O_RDWR) failed: No space left on device (28) in /data/wiki/inc/init.php on line 239

Warning: session_start(): Failed to read session data: files (path: ) in /data/wiki/inc/init.php on line 239

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/auth.php on line 430

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/lib/tpl/dokuwiki/main.php on line 12
2023-2024:teams:al_in_and_back_to_whk:23-nowcoder-1:g [CVBB ACM Team]

用户工具

站点工具


2023-2024:teams:al_in_and_back_to_whk:23-nowcoder-1:g

After each operation the pre-order remain unchanged, so for a right son, it change its father to 1 step backward. If you cannot do that, puts 0. For a left son, you can assign arbitrary steps less than k for it to “climb up” the chain. So the problem is reduced to given some intervals(right sons) and you can add new intervals(left sons).

2023-2024/teams/al_in_and_back_to_whk/23-nowcoder-1/g.txt · 最后更改: 2023/07/18 22:41 由 pigpigger