摘要:
Similarity of Subtrees 题目描述 Define the depth of a node in a rooted tree by applying the following rules recursively:·The depth of a root node is 0.·Th 阅读全文
摘要:
Holy Grail 限制 1000 ms 256 MB As the current heir of a wizarding family with a long history,unfortunately, you fifind yourself forced to participate in 阅读全文
摘要:
Greedy Sequence 限制 5000 ms 256 MB You're given a permutation a of length n (1 ≤ n ≤ 105). For each i ∈ [1, n], construct a sequence si by the followin 阅读全文
摘要:
J: Just Repeat 题目描述 When Cuber QQ was chatting happily in a QQ group one day, he accidentally noticed that there was a counterfeit of him, who stole h 阅读全文
摘要:
C: Prime-Factor Prime 题目描述 A positive integer is called a "prime-factor prime" when the number of its prime factors is prime. For example, 12 is a pri 阅读全文
摘要:
permutation 2 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Problem Description You are given three positive inte 阅读全文