D - Sin Tree

D - Sin Tree

暂无测试数据。

Description

You are given a tree rooted at node 11. You are tasked to perform the following 22 kinds of queries on it.

C x d - Adds dd to all nodes in the subtree rooted at xx
Q x - Queries sin(i)\sum \sin(i) for all ii in the subtree rooted at xx.

信息

ID
1010
难度
(无)
分类
(无)
标签
(无)
递交数
0
已通过
0
通过率
?
上传者