摘要:
Aragorn's Story Description Our protagonist is the handsome human prince Aragorn comes from The Lord of the Rings. One day Aragorn finds a lot of enem 阅读全文
摘要:
1036: [ZJOI2008]树的统计Count Description 一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成一些操作: I. CHANGE u t : 把结点u的权值改为t II. QMAX u v: 询问从点u到点v的路径上的节点 阅读全文
摘要:
E. XOR and Favorite Number Bob has a favorite number k and ai of length n. Now he asks you to answer m queries. Each query is given by a pair li and r 阅读全文
摘要:
375. Query on a tree Problem code: QTREE You are given a tree (an acyclic undirected connected graph) with N nodes, and edges numbered 1, 2, 3...N-1. 阅读全文
摘要:
Remember the Word Since Jiejie can’t remember numbers clearly, he just uses sticks to help himself. Allowing for Jiejie’sonly 20071027 sticks, he can 阅读全文
摘要:
Jam's balance Problem Description Jim has a balance and N weights. (1≤N≤20)The balance can only tell whether things on different side are the same wei 阅读全文
摘要:
Draw a Mess It’s graduated season, every students should leave something on the wall, so....they draw a lot ofgeometry shape with different color.When 阅读全文
摘要:
Frequent values You are given a sequence of n integers a1, a2, . . . , an in non-decreasing order. In addition to that, youare given several queries c 阅读全文