最新 最热

PAT (Advanced Level) Practice 1029 Median (25分)

Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 12, and the...

2020-09-28
1

AIM Tech Round 5 (rated, Div. 1 + Div. 2)C. Rectangles

You are given nn rectangles on a plane with coordinates of their bottom left and upper right points. Some (n−1)(n−1) of the given nn rectangles have some common...

2020-09-28
1

Codeforces Round #199 (Div. 2)C. Cupboard and Balloons

A girl named Xenia has a cupboard that looks like an arc from ahead. The arc is made of a semicircle with radius r (the cupboard's top) and two walls of height ...

2020-09-28
1

2018-2019 ICPC, NEERC, Southern Subregional Contest D. Garbage Disposal

Enough is enough. Too many times it happened that Vasya forgot to dispose of garbage and his apartment stank afterwards. Now he wants to create a garbage dispos...

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 Round #502 (in memory of Leopoldo Taravilse, Div. 1 + Div. 2)C. The Phone Number

Mrs. Smith is trying to contact her husband, John Smith, but she forgot the secret phone number!

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

2019.8.15乘兴打Codeforces Round #569 (Div. 2)小记B. Nick and Array

B. Nick and Array time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Nick had received an awesome arr...

2020-09-28
1

2019.8.15乘兴打Codeforces Round #569 (Div. 2)小记A题A. Alex and a Rhombus

A. Alex and a Rhombus time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output While playing with geometric...

2020-09-28
1