摘要: 题目链接 Problem Description Give you an array A[1..n]of length n. Let f(l,r,k) be the k-th largest element of A[l..r].Specially , f(l,r,k)=0 if r−l+1<k.G 阅读全文
posted @ 2017-08-05 10:52 茶飘香~ 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Problem Description Give you an array A[1..n],you need to calculate how many tuples (i,j,k) satisfy that (i<j<k) and ((A[i] xor A[j])<(A[j] xor A 阅读全文
posted @ 2017-08-05 10:36 茶飘香~ 阅读(404) 评论(0) 推荐(0) 编辑