最新 最热

CodeForces 23B (图论 思维)

n people came to a party. Then those, who had no friends among people at the party, left. Then those, who had exactly 1 friend among those who stayed, left as w...

2020-09-29
1

PAT (Advanced Level) Practice 1144 The Missing Number (20分)

Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.

2020-09-28
1

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 #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 #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

PAT (Advanced Level) Practice 1096 Consecutive Factors (20 分)

Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×5×6×7, where 5, 6, and 7 are t...

2020-09-28
1

Codeforces Round #613 (Div. 2)A. Mezo Playing Zoma

Today, Mezo is playing a game. Zoma, a character in that game, is initially at position x=0x=0. Mezo starts sending nn commands to Zoma. There are two possible ...

2020-09-28
1