BZOJ3223: Artful SBT

Problem Description: Given a sequence comprised of numbers from 1 – N in order. There are M operations. Each operation will flip a sequence [l,r]. Please output the finally formed sequence. Input Format: One line with the number N and M. The next M lines contain two numbers l and r. Output Format: The sequence […]

Read More

P2519: problem a [HAOI2011]

Problem Description: N students are in classroom, the ith student says there are students that have scores higher than me and students that have scores lower than me(There might exist same scores). Please give out the minimum possible number of students that are lying. Input Format: First line with one integer N ≤ 100000 Next […]

Read More

HDU2896: Virus Infection

Problem Description: There are N computer viruses and M potential infected websites. Each virus and website can be described as a string. The task is to find which websites are infected by what kinds of viruses and the total number of infected websites with viruses.  Input Format: The first line contains one number N. The […]

Read More

BZOJ-1001: Wolf and Rabbits

Since the original problem is in another language, I will just translate it into English(may not be as “descriptive”). Problem Description: The Wolf King wants to catch Rabbits, a given graph is listed below.  The Rabbits live in (1,1), the northwest corner, and they want to go to the southeast corner. The Wolf King needs […]

Read More

BZOJ-1000: A + B Problem

Hi, this is the very first Blog I wrote! Since I am an OIer, this is going to be about programming problems! Let’s begin with a simple one. Problem Description: Given two numbers A, B, print the output of  A + B ( A,B ≤ ). Sample Input:  1 2 Sample Output: 3 Ideas: Emm.., I guess everyone knows how […]

Read More