最新 最热

【Gym 100015B】Ball Painting(DP染色)

题There are 2N white balls on a table in two rows, making a nice 2-by-N rectangle. Jon has a big paint bucketfull of black paint. (Don’t ask why.) He wants to ...

2020-06-02
1

Java设计模式(八)外观模式

我发现写设计模式的文章,怎么举例子是个技术活啊。。。很多东西你不实际去用真的不会真正的体会到设计模式带来的一些好处,最近公司的一个客户要做一个考勤功能,这个功能虽然是我们公司产品的标准功能,但是有些东西还是二...

2020-06-01
1

【CodeForces 606A】A -特别水的题1-Magic Spheres

http://acm.hust.edu.cn/vjudge/contest/view.action?cid=102271#problem/ADescriptionCarl is a beginne

2020-05-31
1

【HDU 1757】 A Simple Math Problem

Lele now is thinking about a simple function f(x). If x < 10 f(x) = x. If x >= 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x-3) + …… + a9 * f(x-10); And ai...

2020-05-31
1

【POJ 2243】Knight Moves

A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square o...

2020-05-31
1

【POJ 3176】Cow Bowling(DP)

The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling-pin-like t...

2020-05-31
0

【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

【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

linux删除iptables规则

方法/步骤 首先我们连接上Linux服务器 使用使用 iptables -L -n 可以查看出当前的防火墙规则 使用iptables -L -n --line-

2020-05-29
1