最新 最热

Codeforces Round #624 (Div. 3) C - Perform the Combo

You want to perform the combo on your opponent in one popular fighting game. The combo is the string ss consisting of nn lowercase Latin letters. To perform the...

2020-09-28
1

Codeforces Round #624 (Div. 3) A - Add Odd or Subtract Even

You are given two positive integers aa and bb.

2020-09-28
1

Codeforces Round #629 (Div. 3) F. Make k Equal (技巧暴力,类前缀和,思维,数学)

You are given the array aa consisting of nn elements and the integer k≤nk≤n.

2020-09-28
1

Codeforces 727D-T-shirts Distribution (字符串 贪心)

The organizers of a programming contest have decided to present t-shirts to participants. There are six different t-shirts sizes in this problem: S, M, L, XL, X...

2020-09-28
1

Codeforces Round #633 (Div. 2)C Powered Addition (贪心,二进制)

You have an array aa of length nn. For every positive integer xx you are going to perform the following operation during the xx-th second:

2020-09-28
1

Codeforces Round #633 (Div. 2) A Filling Diamonds (假题,观察)

You have integer nn. Calculate how many ways are there to fully cover belt-like area of 4n−24n−2 triangles with diamond shapes.

2020-09-28
1

Codeforces Round #633 (Div. 2)D Edge Weight Assignment(构造、树的权值异或)

You have unweighted tree of nn vertices. You have to assign a positive weight to each edge so that the following condition would hold:

2020-09-28
1

Educational Codeforces Round 81 (Rated for Div. 2) A. Display The Number

You have a large electronic screen which can display up to 998244353998244353 decimal digits. The digits are displayed in the same way as on different electroni...

2020-09-28
1

Codeforces Round #613 (Div. 2)B. Just Eat It!

Today, Yasser and Adel are at the shop buying cupcakes. There are nn cupcake types, arranged from 11 to nn on the shelf, and there are infinitely many of each t...

2020-09-28
1