D - Sin Tree

D - Sin Tree

暂无测试数据。

Description

You are given a tree rooted at node \(1\). You are tasked to perform the following \(2\) kinds of queries on it.

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

信息

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