
栈
文章平均质量分 78
nka_kun
ACMer
展开
-
POj 3250 Bad Hair Day (思维+单调栈)
Bad Hair DayTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 19167Accepted: 6522DescriptionSome of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a bad hair day! Since each c原创 2017-07-18 12:50:14 · 471 阅读 · 1 评论 -
牛客网第十四届华中科技大学程序设计竞赛 Neat Tree(单调栈)
链接:https://www.nowcoder.com/acm/contest/106/I来源:牛客网It’s universally acknowledged that there’re innumerable trees in the campus of HUST. There is a row of trees along the East-9 Road which con...原创 2018-04-30 22:22:33 · 200 阅读 · 0 评论 -
HDU3410Passing the Message(单调栈)
Passing the MessageProblem DescriptionWhat a sunny day! Let’s go picnic and have barbecue! Today, all kids in “Sun Flower” kindergarten are prepared to have an excursion. Before kicking off, teacher L...原创 2018-04-30 22:31:31 · 334 阅读 · 0 评论