最新 最热

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

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
1

PAT (Advanced Level) Practice 1147 Heaps (30 分)

In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of...

2020-09-28
1

Codeforces Beta Round #72 (Div. 1 Only)B. Doctor

There are n animals in the queue to Dr. Dolittle. When an animal comes into the office, the doctor examines him, gives prescriptions, appoints tests and may app...

2020-09-28
1

Codeforces Round #559 (Div. 2)B. Expansion coefficient of the array

Let's call an array of non-negative integers a1,a2,…,ana1,a2,…,an a kk-extension for some non-negative integer kk if for all possible pairs of indices 1≤i,j≤n1≤...

2020-09-28
1

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

2019.8.15乘兴打Codeforces Round #569 (Div. 2)小记

Recently, on the course of algorithms and data structures, Valeriy learned how to use a deque. He built a deque filled with nn elements. The ii-th element is ai...

2020-09-28
1

Codeforces Round #547 (Div. 3)E. Superhero Battle

A superhero fights with a monster. The battle consists of rounds, each of which lasts exactly nn minutes. After a round ends, the next round starts immediately....

2020-09-28
1

树莓派基础实验33:TCRT5000红外循迹传感器实验

红外跟踪循迹传感器使用TCRT5000循迹模块。TCRT5000采用的是蓝色的LED发射管,通电后发出人眼看不到的红外线。传感器的黑色部分用于接收,内部电阻器的电阻随所接受的红外光而变化。...

2020-09-27
1

String - 68. Text Justification

Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justified.

2020-09-23
1