随笔分类 - Codeforces
摘要:链接: https://codeforces.com/problemset/problem/915/E 题意: This year Alex has finished school, and now he is a first year student of Berland State Univer
阅读全文
摘要:链接: http://codeforces.com/problemset/problem/600/E 题意: You are given a rooted tree with root in vertex 1. Each vertex is coloured in some colour. Let'
阅读全文
摘要:链接: https://codeforces.com/contest/1270/problem/E 题意: You are given a set of n≥2 pairwise different points with integer coordinates. Your task is to p
阅读全文
摘要:链接: https://codeforces.com/contest/1270/problem/D 题意: This problem is interactive. We have hidden an array a of n pairwise different numbers (this mea
阅读全文
摘要:链接: https://codeforces.com/contest/1270/problem/C 题意: Let's call an array a1,a2,…,am of nonnegative integer numbers good if a1+a2+⋯+am=2⋅(a1⊕a2⊕⋯⊕am),
阅读全文
摘要:链接: https://codeforces.com/contest/1270/problem/B 题意: For an array a of integers let's denote its maximal element as max(a), and minimal as min(a). We
阅读全文
摘要:链接: https://codeforces.com/contest/1270/problem/A 题意: Two players decided to play one interesting card game. There is a deck of n cards, with values f
阅读全文
摘要:链接: https://codeforces.com/contest/1279/problem/D 题意: Santa Claus has received letters from n different kids throughout this year. Of course, each kid
阅读全文
摘要:链接: https://codeforces.com/contest/1279/problem/C 题意: Santa has to send presents to the kids. He has a large stack of n presents, numbered from 1 to n
阅读全文
摘要:链接: https://codeforces.com/contest/1279/problem/B 题意: New Year is coming! Vasya has prepared a New Year's verse and wants to recite it in front of San
阅读全文
摘要:链接: https://codeforces.com/contest/1279/problem/A 题意: Polycarp is sad — New Year is coming in few days but there is still no snow in his city. To brin
阅读全文
摘要:链接: https://codeforces.com/contest/1281/problem/D 题意: You are an all powerful being and you have created a rectangular world. In fact, your world is s
阅读全文
摘要:链接: https://codeforces.com/contest/1281/problem/C 题意: outputstandard output We start with a string s consisting only of the digits 1, 2, or 3. The len
阅读全文
摘要:链接: https://codeforces.com/contest/1281/problem/B 题意: Your friend Jeff Zebos has been trying to run his new online company, but it's not going very we
阅读全文
摘要:链接: https://codeforces.com/contest/1282/problem/C 题意: Petya has come to the math exam and wants to solve as many problems as possible. He prepared and
阅读全文
摘要:链接: https://codeforces.com/contest/1282/problem/B2 题意: This is the hard version of this problem. The only difference is the constraint on k — the numb
阅读全文
摘要:链接: https://codeforces.com/contest/1282/problem/A 题意: Polycarp lives on the coordinate axis Ox and travels from the point x=a to x=b. It moves uniform
阅读全文
摘要:链接: https://codeforces.com/contest/1271/problem/E 题意: At first, let's define function f(x) as follows: f(x)={x2x−1if x is evenotherwise We can see tha
阅读全文
摘要:链接: https://codeforces.com/contest/1271/problem/D 题意: You play a strategic video game (yeah, we ran out of good problem legends). In this game you con
阅读全文
摘要:链接: https://codeforces.com/contest/1271/problem/C 题意: The map of the capital of Berland can be viewed on the infinite coordinate plane. Each point wit
阅读全文