上一页 1 ··· 7 8 9 10 11 12 13 下一页

2020年1月20日

A - Cow Contest

摘要: A - Cow Contest N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we all know, some cows code better th 阅读全文

posted @ 2020-01-20 23:56 Aminers 阅读(116) 评论(0) 推荐(0) 编辑

2020年1月19日

J. Circular Dance

摘要: J. Circular Dance There are n kids, numbered from 11 to n, dancing in a circle around the Christmas tree. Let's enumerate them in a clockwise directio 阅读全文

posted @ 2020-01-19 14:22 Aminers 阅读(163) 评论(0) 推荐(0) 编辑

2020年1月18日

C. Nice Garland

摘要: C. Nice Garland You have a garland consisting of nn lamps. Each lamp is colored red, green or blue. The color of the ii-th lamp is si ('R', 'G' and 'B 阅读全文

posted @ 2020-01-18 14:32 Aminers 阅读(144) 评论(0) 推荐(0) 编辑

D. Diverse Garland

摘要: D. Diverse Garland You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the ii-th lamp is si('R', 'G' and ' 阅读全文

posted @ 2020-01-18 14:02 Aminers 阅读(128) 评论(0) 推荐(0) 编辑

G. Array Stabilization

摘要: G. Array Stabilization You are given an array aa consisting of nn integer numbers. Let instability of the array be the following value: maxi=1nai−mini 阅读全文

posted @ 2020-01-18 12:34 Aminers 阅读(186) 评论(0) 推荐(0) 编辑

E. Repeating Cipher

摘要: E. Repeating Cipher Polycarp loves ciphers. He has invented his own cipher called repeating. Repeating cipher is used for strings. To encrypt the stri 阅读全文

posted @ 2020-01-18 12:29 Aminers 阅读(188) 评论(0) 推荐(0) 编辑

B. Divisors of Two Integers

摘要: B. Divisors of Two Integers Recently you have received two positive integer numbers xx and y. You forgot them, but you remembered a shuffled list cont 阅读全文

posted @ 2020-01-18 12:23 Aminers 阅读(221) 评论(0) 推荐(0) 编辑

A. Two distinct points

摘要: A. Two distinct points You are given two segments l1;r1 and l2;r2 on the xx-axis. It is guaranteed that l1<r1l1<r1 and l2<r2l2<r2. Segments may inters 阅读全文

posted @ 2020-01-18 12:15 Aminers 阅读(163) 评论(0) 推荐(0) 编辑

I. Powers Of Two

摘要: I. Powers Of Two A positive integer xx is called a power of two if it can be represented as x=2yx=2y, where y is a non-negative integer. So, the power 阅读全文

posted @ 2020-01-18 11:58 Aminers 阅读(173) 评论(0) 推荐(0) 编辑

2020年1月16日

I - 还是畅通工程

摘要: I - 还是畅通工程 某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。 Input 测试输入包含若干测试用例。 阅读全文

posted @ 2020-01-16 22:38 Aminers 阅读(136) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 下一页

导航