
贪心
文章平均质量分 76
sdau_blue
念念不忘,必有回响。驰而不息,功不唐捐。
展开
-
C. Party Lemonade (贪心+数位)
C. Party Lemonadetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA New Year party is not a New Year party w原创 2018-01-09 10:20:54 · 1160 阅读 · 0 评论 -
多校1——Balanced Sequence(贪心)
Problem DescriptionChiaki has n strings s1,s2,…,sn consisting of '(' and ')'. A string of this type is said to be balanced:+ if it is the empty string+ if A and B are balanced, AB is balanced,+ i...原创 2018-07-24 16:41:06 · 889 阅读 · 6 评论 -
money(贪心)
链接:https://www.nowcoder.com/acm/contest/140/D来源:牛客网 White Cloud has built n stores numbered from 1 to n.White Rabbit wants to visit these stores in the order from 1 to n.The store numbered i has...原创 2018-07-21 21:47:50 · 221 阅读 · 0 评论 -
Buy and Resell(贪心好题!)
这个贪心可以说是很巧妙了。Buy and ResellTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1024 Accepted Submission(s): 318Problem DescriptionThe Po...原创 2018-08-26 15:41:18 · 192 阅读 · 0 评论 -
zoj3987 Numbers(大数+贪心)
NumbersTime Limit: 2 Seconds Memory Limit: 65536 KBDreamGrid has a nonnegative integer . He would like to divide into nonnegative integers and minimizes their bitwise or (i.e. and should be...原创 2018-10-25 21:37:12 · 308 阅读 · 2 评论