摘要:
题目描述 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 阅读全文
摘要:
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 阅读全文
摘要:
题目描述 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 阅读全文
摘要:
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 阅读全文
摘要:
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个位置,根据这种“始终在序列中间某个指定位置进行修改”的性质 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
A*算法: A*,启发式搜索,是一种较为有效的搜索方法。 我们在搜索的时候,很多时候在当前状态,已经不是最优解了,但是我们却继续求解;这个就是暴力搜索浪费时间的原因。 我们在有些时候,往往可以根据一些信息推断出继续搜索是一种劣解。 所以如果能够判断出来的话,就可以不继续了,以达到节省运行时间的目的。 阅读全文
摘要:
题目描述 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 阅读全文