cf468B Two Sets
摘要:Little X has n distinct integers: p1, p2, ..., pn. He wants to divide all of them into two sets A and B. The following two conditions must be satisfie
阅读全文
posted @
2017-07-13 23:56
zhber
阅读(334)
推荐(0)
cf701E Connecting Universities
摘要:Treeland is a country in which there are n towns connected by n - 1 two-way road such that it's possible to get from any town to any other town. In Tr
阅读全文
posted @
2017-07-13 23:26
zhber
阅读(233)
推荐(0)
cf615D Multipliers
摘要:Ayrat has number n, represented as it's prime factorization pi of size m, i.e. n = p1·p2·...·pm. Ayrat got secret information that that the product of
阅读全文
posted @
2017-07-12 00:11
zhber
阅读(785)
推荐(0)
cf682E Alyona and Triangles
摘要:You are given n points with integer coordinates on the plane. Points are given in a way such that there is no triangle, formed by any three of these n
阅读全文
posted @
2017-07-11 23:23
zhber
阅读(1555)
推荐(0)
cf487C Prefix Product Sequence
摘要:Consider a sequence [a1, a2, ... , an]. Define its prefix product sequence . Now given n, find a permutation of [1, 2, ..., n], such that its prefix p
阅读全文
posted @
2017-07-11 23:12
zhber
阅读(241)
推荐(0)
cf299C Weird Game
摘要:Weird Game Yaroslav, Andrey and Roman can play cubes for hours and hours. But the game is for three, so when Roman doesn't show up, Yaroslav and Andre
阅读全文
posted @
2017-07-11 22:45
zhber
阅读(350)
推荐(0)
cf550D Regular Bridge
摘要:Regular Bridge An undirected graph is called k-regular, if the degrees of all its vertices are equal k. An edge of a connected graph is called a bridg
阅读全文
posted @
2017-07-11 22:40
zhber
阅读(235)
推荐(0)
cf715B Complete The Graph
摘要:B. Complete The Graph time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output B. Complete The Gr
阅读全文
posted @
2017-07-11 21:07
zhber
阅读(1387)
推荐(0)
cf601A The Two Routes
摘要:A. The Two Routes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. The Two Routes time
阅读全文
posted @
2016-08-07 12:40
zhber
阅读(465)
推荐(0)
cf602B Approximating a Constant Range
摘要:B. Approximating a Constant Range time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output When X
阅读全文
posted @
2016-08-07 12:31
zhber
阅读(317)
推荐(0)
cf602A Two Bases
摘要:A. Two Bases time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Two Bases time limit per
阅读全文
posted @
2016-08-07 12:19
zhber
阅读(305)
推荐(0)
cf703C Chris and Road
摘要:C. Chris and Road time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output And while Mishka is en
阅读全文
posted @
2016-08-07 12:15
zhber
阅读(386)
推荐(1)
cf703B Mishka and trip
摘要:B. Mishka and trip time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Little Mishka is a gre
阅读全文
posted @
2016-08-07 11:59
zhber
阅读(277)
推荐(0)
cf703A Mishka and Game
摘要:A. Mishka and Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Mishka and Game tim
阅读全文
posted @
2016-08-07 11:54
zhber
阅读(278)
推荐(0)
cf702D Road to Post Office
摘要:D. Road to Post Office time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasiliy has a car
阅读全文
posted @
2016-08-05 22:51
zhber
阅读(251)
推荐(0)
cf702C Cellular Network
摘要:C. Cellular Network time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given n poin
阅读全文
posted @
2016-08-05 22:29
zhber
阅读(386)
推荐(0)
cf702B Powers of Two
摘要:B. Powers of Two time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output B. Powers of Two time l
阅读全文
posted @
2016-08-05 22:24
zhber
阅读(256)
推荐(0)
cf702A Maximum Increase
摘要:A. Maximum Increase time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given array c
阅读全文
posted @
2016-08-05 22:19
zhber
阅读(317)
推荐(0)
cf700A As Fast As Possible
摘要:On vacations n pupils decided to go on excursion and gather all together. They need to overcome the path with the length l meters. Each of the pupils
阅读全文
posted @
2016-07-23 13:09
zhber
阅读(308)
推荐(0)