最新 最热

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

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

Codeforces Round #547 (Div. 3)G. Privatization of Roads in Treeland

Treeland consists of n cities and n−1 roads. Each road is bidirectional and connects two distinct cities. From any city you can get to any other city by roads. ...

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

动态规划入门_钱币兑换问题

首先递推公式 : 钱币面值 从 1,一直遍历到 n , 然后兑换的面值从 j=1 到 j 等于最大的面值, 面对 第 i种面值的硬币,有两种选择,不选则当前硬币面值的所有情况 加上选择当前面值的...

2020-09-28
1

golang 中timer,ticker 的使用

写出上面这段程序的目的是从 input channel 持续接收消息加以处理,同时希望每过5秒钟和每过10秒钟就分别执行一个定时任务

2020-09-27
1