最新 最热

【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
15

【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
5

【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
4

【HDU 2160】母猪的故事

话说现在猪肉价格这么贵,著名的ACBoy 0068 也开始了养猪生活。说来也奇怪,他养的猪一出生第二天开始就能每天中午生一只小猪,而且生下来的竟然都是母猪。 不过光生小猪也不行,0068采用了一个很奇特的办法来管理他的养猪...

2020-05-31
5

【HDU 1009】FatMouse' Trade

FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. ...

2020-05-31
16

【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
6

【HDU 1228】A + B

读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出.

2020-05-31
9

【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
7

【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
11

【CSU 1556】Pseudoprime numbers

Jerry is caught by Tom. He was penned up in one room with a door, which only can be opened by its code. The code is the answer of the sum of the sequence of num...

2020-05-31
14