原创 CodeForces - 580B Shell Game

題目網址: http://codeforces.com/problemset/problem/777/A Kefa and Company   Kefa wants to celebrate his first big salary

原创 HDU - 3516 Tree Construction(區間dp)

傳送門 Consider a two-dimensional space with a set of points (xi, yi) that satisfy xi < xj and yi > yj for all i < j. We

原创 CodeForces - 719E Sasha and Array

傳送門 E. Sasha and Array time limit per test 5 seconds memory limit per test 256 megabytes input standard input

原创 poj3281 Dining 題解

傳送門 Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no oth

原创 hdu1532 Drainage Ditches

傳送門 Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the

原创 poj1459 Power Network題解

傳送門 A power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines.

原创 CodeForces - 719B Anatoly and Cockroaches

Anatoly lives in the university dorm as many other students do. As you know, cockroaches are also living there togethe

原创 hdu3605 Escape題解

傳送門 2012 If this is the end of the world how to do? I do not know how. But now scientists have found that some stars,

原创 ZOJ - 3537 Cake(凸包+區間dp)

傳送門 You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several trian

原创 Shell Game CodeForces - 777A

Bomboslav likes to look out of the window in his room and watch lads outside playing famous shell game. The game is pl

原创 Conscription POJ - 3723

傳送門 Windy has a country, and he wants to build an army to protect his country. He has picked up N girls and M boys an

原创 ZOJ - 3469 Food Delivery (區間dp)

傳送門 When we are focusing on solving problems, we usually prefer to stay in front of computers rather than go out for l

原创 hdu2955 Robberies(01揹包)題解

傳送門 The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in

原创 FZU - 2267(後綴數組)

點擊打開鏈接 Fat brother and Maze are playing a kind of special (hentai) game with two integers. All the digits of these tw

原创 HDU - 3709 : Balanced Number (數位dp)

題目鏈接 : HDU-3709 A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. M