最新 最热

口算训练 HDU - 6287

小Q非常喜欢数学,但是他的口算能力非常弱。因此他找到了小T,给了小T一个长度为n的正整数序列a1,a2,…,an,要求小T抛出m个问题以训练他的口算能力。...

2020-10-10
0

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

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

PAT (Advanced Level) Practice 1049 Counting Ones (30分)

The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. For example...

2020-09-28
1

Codeforces Round #615 (Div. 3)A. Collecting Coins

Polycarp has three sisters: Alice, Barbara, and Cerene. They're collecting coins. Currently, Alice has aa coins, Barbara has bb coins and Cerene has cc coins. R...

2020-09-28
1