最新 最热

Codeforce 1255 Round #601 (Div. 2) A. Changing Volume (贪心)

Bob watches TV every day. He always sets the volume of his TV to bb. However, today he is angry to find out someone has changed the volume to aa. Of course, Bob...

2020-10-28
0

图论--网络流--最小割 HDU 2485 Destroying the bus stations(最短路+限流建图)

Gabiluso is one of the greatest spies in his country. Now he’s trying to complete an “impossible” mission ----- to make it slow for the army of City Colugu to ...

2020-10-28
0

POJ 2456 Aggressive cows

Aggressive cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 24838 Accepted: 11537 Description

2020-10-28
0

codeforces1294D(思维+暴力)

Recall that MEX of an array is a minimum non-negative integer that does not belong to the array. Examples:

2020-10-23
0

codeforces 1374D(数学)

You are given an array a consisting of n positive integers.

2020-10-23
0

codeforces1369C(贪心)

Lee just became Master in Codeforces, and so, he went out to buy some gifts for his friends. He bought n integers, now it’s time to distribute them between his ...

2020-10-23
0

POJ3279 (二进制枚举)

Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipula...

2020-10-23
0

B. Minimize the Permutation (贪心)

You are given a permutation of length n. Recall that the permutation is an array consisting of n distinct integers from 1 to n in arbitrary order. For example, ...

2020-10-23
0

B. Taxi (贪心)

原题链接158B题目描述After the lessons n groups of schoolchildren went outside and decided to visit Polycarpus to celebrate his birthday. We know that the i-th group ...

2020-10-23
0

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
0