- 博客(5)
- 收藏
- 关注
原创 hdu1052 田忌赛马问题
原题大意:分别给你田忌和国王的马匹的速度,只有田忌马匹的速度大于国王的速度(相等时不赢不输),才能赢得比赛,获得200,求n场比赛后田忌能获得的最大钱币。贪心:1) 田忌的最快与齐王最快比,田忌快则PK掉,田忌慢则用田忌最慢的PK齐王最快; 2) 快马相等的话,用田忌的最慢与齐王最慢比,田忌快则PK掉,田忌慢则PK齐王最快; 3) 最
2013-05-30 22:50:54 876
原创 POJ 3250 Bad Hair Day -- 栈
Bad Hair DayTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 11340 Accepted: 3832DescriptionSome of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a ba
2013-05-15 13:20:12 682
原创 A + B Problem II && 大数相加相减
A + B Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionI have a very simple problem for you. Given two integers A and B, your j
2013-05-08 21:26:06 1042 1
原创 Oil Deposits poj1562 + Counting sheep hdu2952
Oil DepositsTime Limit: 1000MS Memory Limit: 10000K DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSur
2013-05-08 21:16:21 833
原创 Sliding Window poj2823--单调队列
Sliding WindowTime Limit: 12000MS Memory Limit: 65536K Case Time Limit: 5000MSDescriptionAn array of size n ≤ 106 is given to you. There is a sliding window o
2013-05-06 18:51:49 798
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人