摘要: Description BX正在进行一个字符串游戏,他手上有一个字符串L,以及其 他一些字符串的集合S,然后他可以进行以下操作:对于一个在集合S中的字符串p,如果p在L中出现,BX就可以选择是否将其删除,如果删除,则将删除后L 分裂成的左右两部分合并。举个例子,L='abcdefg' , S={'d 阅读全文
posted @ 2016-09-16 22:51 ljh_2000 阅读(440) 评论(0) 推荐(0) 编辑
摘要: Description Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' 阅读全文
posted @ 2016-09-16 15:30 ljh_2000 阅读(276) 评论(2) 推荐(0) 编辑
摘要: Description 给你N个点的无向图 (1 <= N <= 15,000),记为:1…N。 图中有M条边 (1 <= M <= 30,000) ,第j条边的长度为: d_j ( 1 < = d_j < = 1,000,000,000). 现在有 K个询问 (1 < = K < = 15,000 阅读全文
posted @ 2016-09-16 14:35 ljh_2000 阅读(240) 评论(0) 推荐(0) 编辑