UOJ Logo 黑暗爆炸OJ

DARKBZOJ

#4910. [Sdoi2017] 苹果树

Statistics 下载数据

Description

 www.lydsy.com/JudgeOnline/upload/sdoi2017r2d1.pdf

Input

Output

Sample Input

Sample Output

Hint

Source