[关闭]
@M1saki 2017-07-31T16:55:41.000000Z 字数 368 阅读 1090

Codeforces Round #425 (Div. 2)

acm 2017年7月 codeforces


入口:Codeforces Round #425 (Div. 2)

rank ac/all A B C D E
562 3/5 O O . Ø .
. 尚未通过 O 当场通过 Ø 赛后通过



A. Sasha and Sticks


B. Petya and Exam


D. Misha, Grisha and Underground


求出三个lca,并取深度最大的那个,就是我们要的三岔路口K,然后分别求出K到a,b,c三点的路径长度,取最大值+1就是答案。



添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注