摘要: Summer Reading Description Input Output Sample Input 7 0 1 0 0 0 3 0 Sample Output 3 1 1 2 2 3 3 3 HINT Solution Code 1 #include<iostream> 2 #include< 阅读全文
posted @ 2017-10-18 17:32 BearChild 阅读(210) 评论(0) 推荐(0) 编辑
摘要: ZS and The Birthday Paradox Description Input Output Sample Input 4 3 Sample Output 23 128 HINT Solution Code 1 #include<iostream> 2 #include<string> 阅读全文
posted @ 2017-10-18 17:20 BearChild 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Yura and Developers Description Input Output Sample Input 4 3 5 2 4 4 Sample Output 2 HINT Solution 首先,我们先用单调栈求出以点 i 作为最大值的区间 [pre_i, suc_i]。然后显然就是 求 阅读全文
posted @ 2017-10-18 17:02 BearChild 阅读(401) 评论(0) 推荐(0) 编辑