最新 最热

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
1

HDOJ 1018(数论)

Problem Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, e...

2020-10-23
0

230B. T-primes (数论)

We know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we’ll call a positive integer t Т-prime, if t has ...

2020-10-23
1

HDOJ 1009(贪心)

Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The wa...

2020-10-23
1

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

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
0

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
0

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
0

PAT (Advanced Level) Practice 1003 Emergency (25 分)

As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amoun...

2020-09-28
0

Codeforces Beta Round #8 A. Train and Peter

Peter likes to travel by train. He likes it so much that on the train he falls asleep.

2020-09-28
1