![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
a碟
这个作者很懒,什么都没留下…
展开
-
1416A k-Amazing Numbers
A. k-Amazing Numbers You are given an array a consisting of n integers numbered from 1 to n. Let’s define the k-amazing number of the array as the minimum number that occurs in all of the subsegments of the array having length k (recall that a subsegment o原创 2020-10-24 10:39:06 · 276 阅读 · 0 评论 -
1459C. Row GCD(经典数论)
You are given two positive integer sequences a1,…,an and b1,…,bm. For each j=1,…,m find the greatest common divisor of a1+bj,…,an+bj. Input The first line contains two integers n and m (1≤n,m≤2⋅105). The second line contains n integers a1,…,an (1≤ai≤1018).原创 2020-12-21 10:40:04 · 797 阅读 · 0 评论