hdu1114

maksyuki 发表于 oj 分类,标签:
0
hdu1114

Piggy-Bank

Problem Description

Before ACM can do anything, a budget must be prepared and the >>继续阅读

hdu1087

maksyuki 发表于 oj 分类,标签:
0
hdu1087

Super Jumping! Jumping! Jumping!

Problem Description

Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now. >>继续阅读

hdu1085

maksyuki 发表于 oj 分类,标签:
0
hdu1085

Holding Bin-Laden Captive!

Problem Description

We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported that he hides in Hang Zhou of China! >>继续阅读

hdu1075

maksyuki 发表于 oj 分类,标签:
0
hdu1075

What Are You Talking About

Problem Description

Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leaves. Now Ignatius want >>继续阅读

hdu1042

maksyuki 发表于 oj 分类,标签:
0
hdu1042

N!

Problem Description

Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! >>继续阅读

hdu1028

maksyuki 发表于 oj 分类,标签:
0
hdu1028

Ignatius and the Princess III

Problem Description

"Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says.

"The second problem is, given an positive integer N, we define an equation like this >>继续阅读

hdu1025

maksyuki 发表于 oj 分类,标签:
0
hdu1025

Constructing Roads In JGShining's Kingdom

Problem Description

JGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines. >>继续阅读

hdu1023

maksyuki 发表于 oj 分类,标签:
0
hdu1023

Train Problem II

Problem Description

As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the railway. >>继续阅读

hdu1009

maksyuki 发表于 oj 分类,标签:
0
hdu1009

FatMouse' Trade

Problem Description

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. The i-th room contains J[i] pounds of JavaBeans a >>继续阅读

hdu1005

maksyuki 发表于 oj 分类,标签:
0
hdu1005

Number Sequence

Problem Description

A number sequence is defined as follows:

f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.

Given A, B, and n, you are to calculate the value of f(n). >>继续阅读

hdu1004

maksyuki 发表于 oj 分类,标签:
0
hdu1004

Let the Balloon Rise

Problem Description

Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over, they will count th >>继续阅读

hdu1003

maksyuki 发表于 oj 分类,标签:
0
hdu1003

Max Sum

Problem Description

Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), >>继续阅读

uva12412

maksyuki 发表于 oj 分类,标签:
0
uva12412

Hi, I am an undergraduate student in institute of foreign languages. As you know, C programming is a required course in our university, even if his/her major is far from computer science. I don't like this course at all, as I am not good at computer >>继续阅读

uva12100

maksyuki 发表于 oj 分类,标签:
0
uva12100

The only printer in the computer science students’ union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to get a single page of output.

Because some jobs are m >>继续阅读

uva11988

maksyuki 发表于 oj 分类,标签:
0
uva11988

You're typing a long text with a broken keyboard. Well it's not so badly broken. The only problem with the keyboard is that sometimes the "home" key or the "end" key gets automatically pressed (internally).

You're not aware of this issue, since you >>继续阅读

uva11424

maksyuki 发表于 oj 分类,标签:
0
uva11424

Given the value of N, you will have to find the value of G. The definition of G is given below:G =i<N∑i=1j∑≤Nj=i+1GCD(i, j) Here GCD(i, j) means the greatest common divisor of integer i and integer j.

For those who have trouble understanding sum >>继续阅读