目录
@description@
@solution@
@accepted code@
@details@
@description@
有一棵有根树,根为 1,点有点权。
现在有 m 次操作,操作有 3 种:
1 x y w,将 x 到 y 的路径上的点点权加上 w (其中 w=±1);
2 x y...
E. Tourists
time limit per test:
2 seconds
memory limit per test:
256 megabytes
input:
standard input
output
:standard output
There are n cities in Cyberland, numbered from 1 t...