自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(336)
  • 收藏
  • 关注

原创 Kalevich Strikes Back

W - Kalevich Strikes BackTime Limit:500MS    Memory Limit:65536KB    64bit IO Format:%I64d & %I64uSubmitStatusDescriptionAnd yet again the Berland community can see that talent is alwa

2014-08-16 19:57:11 2273

原创 POJ 2486 Apple Tree

Apple TreeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7120 Accepted: 2370DescriptionWshxzt is a lovely girl. She likes apple very much. One day HX tak

2014-08-04 21:46:58 2841

原创 POJ 2404 Jogging Trails

Jogging TrailsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2122 Accepted: 849DescriptionGord is training for a marathon. Behind his house is a park wit

2014-07-08 19:49:20 2948

原创 POJ 2057 The Lost House

The Lost HouseTime Limit: 3000MS Memory Limit: 30000KTotal Submissions: 2140 Accepted: 886DescriptionOne day a snail climbed up to a big tree and finally came to th

2014-07-06 11:13:10 2779

原创 POJ 1952 BUY LOW, BUY LOWER

BUY LOW, BUY LOWERTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 8311 Accepted: 2883DescriptionThe advice to "buy low" is half the formula to success i

2014-06-19 09:13:21 2655

原创 POJ 1946 Cow Cycling

Cow CyclingTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 2516 Accepted: 1396DescriptionThe cow bicycling team consists of N (1 Like everyone else,

2014-06-13 13:44:10 2646

原创 POJ 1848 Tree

TreeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 3506 Accepted: 1204DescriptionConsider a tree with N vertices, numbered from 1 to N. Add, if it is p

2014-06-10 17:38:47 2614

原创 POJ 1828 Monkeys' Pride

Monkeys' PrideTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8640 Accepted: 2854DescriptionBackground There are a lot of monkeys in a mountain. Every

2014-06-06 21:40:04 2236

原创 POJ 1770 Special Experiment

Special ExperimentTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 1790 Accepted: 601DescriptionAs we know, an atom can be in different energy states (or

2014-06-06 14:51:33 2572

原创 POJ 1322 Chocolate

ChocolateTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8245 Accepted: 2186 Special JudgeDescriptionIn 2100, ACM chocolate will be one of the favorit

2014-06-02 21:02:10 2704

原创 POJ 1191 棋盘分割

棋盘分割Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 11938 Accepted: 4207Description将一个8*8的棋盘进行如下分割:将原棋盘割下一块矩形棋盘并使剩下部分也是矩形,再将剩下的部分继续如此分割,这样割了(n-1)次后,连同最后剩下

2014-05-30 16:08:56 2601

原创 POJ 1141 Brackets Sequence

Brackets SequenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 24393 Accepted: 6885 Special JudgeDescriptionLet us define a regular brackets seque

2014-05-29 16:20:48 2229

原创 POJ 1038 Bugs Integrated, Inc.

Bugs Integrated, Inc.Time Limit: 15000MS Memory Limit: 30000KTotal Submissions: 8825 Accepted: 3381Case Time Limit: 5000MSDescriptionBugs Integrated, Inc. i

2014-05-28 15:30:12 2721

原创 POJ 1036 Gangsters

先按时间排序,然后dp

2014-05-20 20:27:40 2131

原创 POJ 1015 Jury Compromise

Jury CompromiseTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 24463 Accepted: 6358 Special JudgeDescriptionIn Frobnia, a far-away country, the verd

2014-05-16 08:49:07 2284

原创 POJ 2187 Beauty Contest

Beauty ContestTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 26743 Accepted: 8258DescriptionBessie, Farmer John's prize cow, has just won first place i

2014-05-07 16:18:40 2394

原创 HDU 3038 How Many Answers Are Wrong

http://acm.hdu.edu.cn/showproblem.php?pid=3038这是一道并查集题目,这并查集感觉好难写,构思花了我很长很长时间,不过打码时间很短。考虑清楚之后明显快多了#include #include #include #include #include #include #include #define N 200010using names

2014-05-05 16:55:45 2401

原创 UVa 11437 - Triangle Fun

该学一下用向量求交点坐标了。#include #include #include #include #include #include #define eqs 1e-8using namespace std;double a = 2.0/3;double b = 1.0/3;int main(){ //freopen("data.txt","r",stdin);

2014-04-18 00:25:54 2515

原创 POJ 3277 City Horizon

City HorizonTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 15769 Accepted: 4276DescriptionFarmer John has taken his cows on a trip to the city! As the

2014-03-31 21:31:00 2530

原创 POJ 1765 November Rain

November RainTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 2097 Accepted: 448Case Time Limit: 2000MSDescriptionContemporary buildings can have v

2014-03-29 21:19:05 2964

原创 ZOJ 3601 Unrequited Love

Unrequited LoveTime Limit: 16 Seconds      Memory Limit: 131072 KB There are n single boys and m single girls. Each of them may love none, one or several of other people unrequitedly and one

2014-03-14 13:28:57 948

原创 POJ 1177 Picture

http://poj.org/problem?id=1177 典型的求周长并的题目,在学习了面积并之后,酝酿了好几天,终于把这周长并的独立的写出来了,扫描线面积并 周长并归根到底还是线段树的应用。用线段树来维护数据#include #include #include #include #include #include #define N 51000using names

2014-03-07 00:15:57 1155

原创 POJ 1151 Atlantis

AtlantisTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 16244 Accepted: 6183DescriptionThere are several ancient Greek texts that contain descriptions o

2014-03-03 21:38:11 721

原创 POJ 3286 How many 0's?

How many 0's?Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2844 Accepted: 1506DescriptionA Benedict monk No.16 writes down the decimal representations

2014-02-28 20:45:05 1049

原创 POJ 1785 Binary Search Heap Construction

Binary Search Heap ConstructionTime Limit: 2000MS Memory Limit: 30000KTotal Submissions: 8383 Accepted: 2418DescriptionRead the statement of problem G for the def

2014-02-26 19:49:38 1281

原创 POJ 3150 Cellular Automaton

Cellular AutomatonTime Limit: 12000MS Memory Limit: 65536KTotal Submissions: 2975 Accepted: 1191Case Time Limit: 2000MSDescriptionA cellular automaton is

2014-02-24 11:04:03 880

原创 Codeforces 392B Tower of Hanoi

B. Tower of Hanoitime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Tower of Hanoi is a well-known mathema

2014-02-20 09:22:01 1085

原创 [1545] New Year 2014

[1545] New Year 2014时间限制: 2000 ms 内存限制: 262144 K问题描述In the New Year 2014, Xiao Ming is thinking about the question: give two integers N and K, Calculate the number of the numbers of sati

2014-02-14 08:53:44 929

原创 POJ 3301 Texas Trip

Texas TripTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3786 Accepted: 1132DescriptionAfter a day trip with his friend Dick, Harry noticed a strange p

2014-02-11 19:35:19 1087

原创 POJ 3070 Fibonacci

FibonacciTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8202 Accepted: 5835DescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn 

2014-02-10 20:23:57 1011 2

原创 POJ 3422 Kaka's Matrix Travels

Kaka's Matrix TravelsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7191 Accepted: 2874DescriptionOn an N × N chessboard with a non-negative number in

2014-02-10 16:49:25 805

原创 POJ 2976 Dropping tests

Dropping testsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5290 Accepted: 1843DescriptionIn a certain course, you take n tests. If you get ai out of 

2014-02-09 20:55:33 864

原创 POJ 2115 C Looooops

C LooooopsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15974 Accepted: 4107DescriptionA Compiler Mystery: We are given a C-language style for loop of

2014-01-18 10:29:29 986

原创 POJ 3101 Astronomy

AstronomyTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 4700 Accepted: 996DescriptionThere are n planets in the planetary system of star X. They orbit

2014-01-15 19:16:33 932

原创 POJ 2891 Strange Way to Express Integers

Strange Way to Express IntegersTime Limit: 1000MS Memory Limit: 131072KTotal Submissions: 8912 Accepted: 2705DescriptionElina is reading a book written by Rujia

2014-01-13 18:16:46 763

原创 POJ 1061 青蛙的约会

青蛙的约会Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 84717 Accepted: 14818Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止

2014-01-12 15:07:42 951

原创 POJ 3071 Football

FootballTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2509 Accepted: 1264Description   Consider a single-elimination football tournament involving 2n

2013-11-07 22:38:37 660

原创 HDU 3829 Cat VS Dog

Cat VS DogTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 125536/65536 K (Java/Others)Total Submission(s): 2220    Accepted Submission(s): 767Problem DescriptionThe zoo have N ca

2013-10-30 17:06:35 1028

原创 POJ 3833 YY's new problem

YY's new problemTime Limit: 12000/4000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3333    Accepted Submission(s): 941Problem DescriptionGiven a per

2013-10-28 21:42:15 1032

原创 POJ 1166 The Clocks

The ClocksTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 13770 Accepted: 5494Description|-------| |-------| |-------|| | | |

2013-10-27 00:25:08 1303

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除