摘要: You are given a prime number pp, nn integers a1,a2,…,ana1,a2,…,an, and an integer kk. Find the number of pairs of indexes (i,j)(i,j) (1≤i<j≤n1≤i<j≤n) 阅读全文
posted @ 2019-07-09 16:27 断腿三郎 阅读(434) 评论(0) 推荐(0)
摘要: Note that this is the first problem of the two similar problems. You can hack this problem only if you solve both problems. You are given a tree with  阅读全文
posted @ 2019-07-09 15:27 断腿三郎 阅读(702) 评论(0) 推荐(0)