摘要:
Description After their royal wedding, Jiajia and Wind hid away in XX Village, to enjoy their ordinary happy life. People in XX Village lived in beaut 阅读全文
摘要:
Problem Description The ALPC company is now working on his own network system, which is connecting all N ALPC department. To economize on spending, th 阅读全文
摘要:
LCA 题意:给一个无根树,有q个询问,每个询问3个点,问将这3个点连起来,距离最短是多少, LCA的模板题,分别求LCA(X,Y),LCA(X,Z),LCA(Y,Z), 和对应的距离,然后3个距离相加再除以2就是这个询问的结果 阅读全文
摘要:
Problem Description After World War X, a lot of cities have been seriously damaged, and we need to rebuild those cities. However, some materials neede 阅读全文
摘要:
How far away ? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22976 Accepted Submission(s): 9078 阅读全文