摘要:
Description 有一棵点数为 N 的树,以点 1 为根,且树点有边权。然后有 M 个 操作,分为三种: 操作 1 :把某个节点 x 的点权增加 a 。 操作 2 :把某个节点 x 为根的子树中所有点的点权都增加 a 。 操作 3 :询问某个节点 x 到根的路径中所有点的点权和。 Soluti 阅读全文
摘要:
Description You're playing a game called Osu! Here's a simplified version of it. There are n clicks in a game. For each click there are two outcomes: 阅读全文
摘要:
Description Pashmak's homework is a problem about graphs. Although he always tries to do his homework completely, he can't solve this problem. As you 阅读全文
摘要:
Description The Bad Luck Island is inhabited by three kinds of species: r rocks, s scissors and p papers. At some moments of time two random individua 阅读全文
摘要:
Description It turns out that you are a great fan of rock band AC/PE. Peter learned that and started the following game: he plays the first song of th 阅读全文
摘要:
Description There are N guests checking in at the front desk of the hotel. 2K (0 ≤ 2K ≤ N) of them are twins.There are M rooms available. Each room ha 阅读全文