摘要:
可以证明的是,总是存在一种最优策略使得每个组内的权值都是连续的。 所以排完序一遍 two pointers就好啦。 Discription Mishka received a gift of multicolored pencils for his birthday! Unfortunately h 阅读全文
摘要:
Discription You are given a tree with N nodes. The tree nodes are numbered from 1 to N. Each node has an integer weight. We will ask you to perform th 阅读全文
摘要:
设f[l,r]为区间[l,r]的f值,那么可以很容易的发现f[l,r] = f[l+1,r] ^ f[l,r-1] (l<r) or a[l] (l==r),这个在纸上画一画就发现了。 于是就成了一个SB题了2333 Discription For an array bb of length mm 阅读全文
摘要:
题目描述 Mirko has become CEO of a huge corporation. This corporation consists of N people, labeled from 1 to N , and Mirko is labeled 1. The corporatio 阅读全文