最新 最热

【Gym 100733D】Little thief Shi(取数,DP)

Shi realized that he was almost out of money, even renting Shitalian lands. Shi was walking on a street, while thinking of a way to recover his fortune. In his ...

2020-05-31
1

【CodeForces 312B】BUPT 2015 newbie practice #3A Archer

SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shoot...

2020-05-31
1

【CodeForces 489A】SwapSort

In this problem your goal is to sort an array consisting of n integers in at most n swaps. For the given array find the sequence of swaps that makes the array s...

2020-05-31
1

【CodeForces 605A】BUPT 2015 newbie practice #2 div2-E - Sorting Railway Cars

http://acm.hust.edu.cn/vjudge/contest/view.action?cid=102419#problem/EDescriptionAn infinitely lon

2020-05-31
1

【UVA 11078】BUPT 2015 newbie practice #2 div2-A -Open Credit System

http://acm.hust.edu.cn/vjudge/contest/view.action?cid=102419#problem/AIn an open credit system, the

2020-05-31
1

【CodeForces 602C】H - Approximating a Constant Range(dijk)

In Absurdistan, there are n towns (numbered 1 through n) and m bidirectional railways. There is also an absurdly simple road network — for each pair of differen...

2020-05-31
1

【CodeForces 602B】G - 一般水的题2-Approximating a Constant Range

DescriptionWhen Xellos was doing a practice course in university, he once had to measure the intensity of an effect that slowly approached equilibrium. A good ...

2020-05-31
1

【CodeForces 604B】F - 一般水的题1-More Cowbe

Kevin Sun wants to move his precious collection of n cowbells from Naperthrill to Exeter, where there is actually grass instead of corn. Before moving, he must ...

2020-05-31
1

【CodeForces 599A】D - 特别水的题4- Patrick and Shopping

Today Patrick waits for a visit from his friend Spongebob. To prepare for the visit, Patrick needs to buy some goodies in two stores located near his house. The...

2020-05-31
1

【codevs1044】导弹拦截问题与Dilworth定理

某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统。但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能高于前一发的高度。某天,雷达捕捉到敌国的导弹来袭。由于该系统还...

2020-05-31
1