poj2104

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

K-th Number

You are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked to write a new data structure that would be able to return quickly k-th order statistics in the array segment.

That is, given an array a[1...n] of different integer numbers, your program must answer a series of questions >>继续阅读

BestCoder Round #67 (2/4)

maksyuki 发表于 比赛 分类,标签:
4
BestCoder Round #67 (2/4)

A N bulbs

Problem Description

N bulbs are in a row from left to right,some are on, and some are off.The first bulb is the most left one. And the last one is the most right one.they are numbered from 1 to n,from left to right. >>继续阅读

Codeforces Round #336(Div.2) (1/5) (Div.1) (0/5)

maksyuki 发表于 比赛 分类,标签:
0
Codeforces Round #336(Div.2) (1/5) (Div.1) (0/5)

A Saitama Destroys Hotel

Saitama accidentally destroyed a hotel again. To repay the hotel company, Genos has volunteered to operate an elevator in one of its other hotels. The elevator is special — it starts on the top floor, can only move down, an >>继续阅读

TopCoder SRM#676(Div2)(2/3)

maksyuki 发表于 比赛 分类,标签:
0
TopCoder SRM#676(Div2)(2/3)

250 Problem Statement

Farmer John recently found out about a popular online farming game.There are n types of plants in the game. The types are numbered 0 through n-1. At the beginning of the game, Farmer John is given one seed of each plant type.T >>继续阅读

poj2182

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

Lost Cows

N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neighborhood 'watering hole' and drank a few too many beers before dinner. When it was time to line up for th >>继续阅读

BestCoder Round #65 (4/5)

maksyuki 发表于 比赛 分类,标签:
0
BestCoder Round #65 (4/5)

A ZYB's Biology

Problem Description

After getting 600 scores in NOIP ZYB(ZJ-267) begins to work with biological questions.Now he give you a simple >>继续阅读

Codeforces Round #334(Div.2) (3/5) (Div.1) (1/5)

maksyuki 发表于 比赛 分类,标签:
0
Codeforces Round #334(Div.2) (3/5) (Div.1) (1/5)

A Uncowed Forces

Kevin Sun has just finished competing in Codeforces Round #334! The round was 120 minutes long and featured five problems with maximum point values of 500, 1000, 1500, 2000, and 2500, respectively. Despite the challenging tasks, Ke >>继续阅读

codeforces 55D

maksyuki 发表于 oj 分类,标签:
0
codeforces 55D

Beautiful numbers

Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by each of its nonzero digits. We will not argue with >>继续阅读

hdu4389

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

X mod f(x)

Problem Description

Here is a function f(x): int f ( int x ) { if ( x == 0 ) return 0; return f ( x / 10 ) + x % 10;} Now, you want to know, in a given interval [A, B] (1 <= A <= B <= 109), how many integer x that mod f(x) equ >>继续阅读

hdu3652

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

B-number

Problem Description

A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided by 13. For example, 130 and 2613 are wqb-numbers, but 143 and 2639 are not. Your task >>继续阅读

hdu2639

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

Bone Collector II

Problem Description

The title of this problem is familiar,isn't it?yeah,if you had took part in the "Rookie Cup" competition,you must have seem this title.If you haven't seen it before,it doesn't matter,I will give you a link: >>继续阅读

hdu5115

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

Dire Wolf

Problem Description

Dire wolves, also known as Dark wolves, are extraordinarily large and powerful wolves. Many, if not all, >>继续阅读

hdu1078

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

FatMouse and Cheese

Problem Description

FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At each grid location >>继续阅读

poj3616

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

Milking Time

Bessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her next N (1 ≤ N ≤ 1,000,000) hours (conveniently labeled 0..N-1) so that she produces as much milk as possible. >>继续阅读

poj3186

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

Treats for the Cows

FJ has purchased N (1 <= N <= 2000) yummy treats for the cows who get money for giving vast amounts of milk. FJ sells one treat per day and wants to maximize the money he receives over a given period time.

The treats are >>继续阅读

hdu2089

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

不要62

Problem Description

杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。

杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样 >>继续阅读