摘要:
TreeTime Limit:1000MSMemory Limit:30000KTotal Submissions:12276Accepted:3886DescriptionGive a tree with n vertices,each edge has a length(positive int... 阅读全文
摘要:
DISUBSTR - Distinct SubstringsGiven a string, we need to find the total number of its distinct substrings.InputT- number of test cases. T 2 #include ... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3726题意:n个点m条边的一张无向图,每个点有一个权值, 有3中操作。D X 删除第X条边Q X K 计算与X点相连所有点中第k大的权值C X V把X的权值改为 V输出 Q次询问的平均值大白上的例题, 离... 阅读全文
摘要:
D. Looking for OwlsEmperor Palpatine loves owls very much. The emperor has some blueprints with the new Death Star, the blueprints contain n distinct ... 阅读全文