摘要: 题目描述 She says that any Pavarotti among the nightingales will serenade his mate while she sits on her eggs. She says that any excited database can answ 阅读全文
posted @ 2018-10-01 10:20 特特w 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Description Fleeting time does not blur my memory of you. Can it really be 4 years since I first saw you? I still remember, vividly, on the beautiful 阅读全文
posted @ 2018-09-29 23:20 特特w 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 题目描述 BaoBao has just found a rooted tree with n vertices and (n-1) weighted edges in his backyard. Among the vertices, m of them are red, while the ot 阅读全文
posted @ 2018-09-21 20:34 特特w 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Description In an edge-weighted tree, the xor-length of a path p is defined as the xor sum of the weights of edges on p: ⊕ is the xor operator. We say 阅读全文
posted @ 2018-09-19 20:31 特特w 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Sample Input 8 I 2 I -1 I 1 Q 3 L D R Q 2 8 I 2 I -1 I 1 Q 3 L D R Q 2 Sample Output 2 3 发现IDLR四种操作都在光标处发生,且操作完成后光标至多移动1个位置,根据这种“始终在序列中间某个指定位置进行修改”的性质 阅读全文
posted @ 2018-09-14 19:53 特特w 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Problem Description The Power Cube is used as a stash of Exotic Power. There are n cities numbered 1,2,…,n where allowed to trade it. The trading pric 阅读全文
posted @ 2018-09-13 16:56 特特w 阅读(312) 评论(0) 推荐(0) 编辑
摘要: You promised your girlfriend a rounded cake with at least SS strawberries. But something goes wrong, you don't have the final cake but an infinite pla 阅读全文
posted @ 2018-09-12 19:50 特特w 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-09 21:20 特特w 阅读(225) 评论(0) 推荐(0) 编辑
摘要: A*算法: A*,启发式搜索,是一种较为有效的搜索方法。 我们在搜索的时候,很多时候在当前状态,已经不是最优解了,但是我们却继续求解;这个就是暴力搜索浪费时间的原因。 我们在有些时候,往往可以根据一些信息推断出继续搜索是一种劣解。 所以如果能够判断出来的话,就可以不继续了,以达到节省运行时间的目的。 阅读全文
posted @ 2018-09-08 20:44 特特w 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Arty has been an abstract artist since childhood, and his works have taken on many forms. His latest (and most pricey) creations are lovingly ref 阅读全文
posted @ 2018-09-05 21:04 特特w 阅读(347) 评论(1) 推荐(0) 编辑