摘要: The only difference between easy and hard versions is a number of elements in the array. You are given an array aa consisting of nn integers. The valu 阅读全文
posted @ 2019-01-24 12:34 茄子Min 阅读(649) 评论(0) 推荐(0)
摘要: You have a garland consisting of nn lamps. Each lamp is colored red, green or blue. The color of the ii-th lamp is sisi ('R', 'G' and 'B' — colors of 阅读全文
posted @ 2019-01-24 12:29 茄子Min 阅读(518) 评论(0) 推荐(0)
摘要: You have a garland consisting of nn lamps. Each lamp is colored red, green or blue. The color of the ii-th lamp is sisi ('R', 'G' and 'B' — colors of 阅读全文
posted @ 2019-01-24 12:25 茄子Min 阅读(675) 评论(0) 推荐(0)
摘要: Recently you have received two positive integer numbers xx and yy. You forgot them, but you remembered a shuffled list containing all divisors of xx ( 阅读全文
posted @ 2019-01-24 12:20 茄子Min 阅读(707) 评论(0) 推荐(0)
摘要: You are given two segments [l1;r1][l1;r1] and [l2;r2][l2;r2] on the xx-axis. It is guaranteed that l1<r1l1<r1 and l2<r2l2<r2. Segments may intersect, 阅读全文
posted @ 2019-01-24 12:13 茄子Min 阅读(484) 评论(0) 推荐(0)