摘要:
Description Ponyo and Garfield are waiting outside the box-office for their favorite movie. Because queuing is so boring, that they want to play a gam 阅读全文
posted @ 2016-08-07 18:24
wust_ouyangli
阅读(382)
评论(0)
推荐(0)
摘要:
代码 //先init,然后Build_tree(hd[0],左,右),接下来Update(hd[前一个],hd[当前],左,右,数,数量) //可支持在线。最后可查询 #define e tree[rt] #define p tree[pre] int hd[maxn]; struct Tree{ 阅读全文
posted @ 2016-08-07 10:37
wust_ouyangli
阅读(132)
评论(0)
推荐(0)
摘要:
Problem Description Alice get a string S. She thinks palindrome string is interesting. Now she wanna know how many three tuple (i,j,k) satisfy 1≤i≤j<k 阅读全文
posted @ 2016-08-07 10:34
wust_ouyangli
阅读(439)
评论(0)
推荐(0)
摘要:
Problem Description In this problem, you are given a string s and q queries.For each query, you should answer that when all distinct substrings of str 阅读全文
posted @ 2016-08-07 10:18
wust_ouyangli
阅读(258)
评论(0)
推荐(0)

浙公网安备 33010602011771号