摘要: Bumb Description Input Output Sample Input 4 1 5 1 4 Sample Output 5 HINT Solution 首先,我们对于一个已知的k,可以O(n)得到Ans,这样就有60%了。 那么怎么做90%呢?老老实实写O(nlogn)是不可能的!模拟 阅读全文
posted @ 2017-10-03 21:47 BearChild 阅读(409) 评论(0) 推荐(0) 编辑