摘要:
函数lower_bound()在first和last中的前闭后开区间进行二分查找,返回大于或等于val的第一个元素位置。如果所有元素都小于val,则返回last的位置,upper_bound()同理,只是返回大于val的第一个元素位置。所以,要记住:函数lower_b... 阅读全文
posted @ 2015-05-31 19:56
Herumw
阅读(362)
评论(0)
推荐(0)
摘要:
Problem DescriptionYou are given two strings s1[0..l1], s2[0..l2] and Q - number of queries.Your task is to answer next queries: 1) 1... 阅读全文
posted @ 2015-05-31 11:11
Herumw
阅读(151)
评论(0)
推荐(0)
摘要:
Problem DescriptionData structure is one of the basic skills for Computer Science students, which is a particular way of storing and o... 阅读全文
posted @ 2015-05-31 09:48
Herumw
阅读(165)
评论(0)
推荐(0)