#P1960. Jumping Path

    ID: 768 传统题 10000ms 128MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>2019 ACM Southeast USA regional(10小时马拉松赛)

Jumping Path

题目描述

PDF

输入格式

AS shown in the PDF.

输出格式

AS shown in the PDF.

样例

5 
3 
3 
3 
3 
3 
1 
2 
3 
4 

5 1 

5 
4 
3 
2 
1 
0 
1 
2 
3 
4 

1 5 

4 
1 
5 
3 
6 
1 
2 
3 

3 2 

提示

sourced from 2019 ACM Southeast USA regional(10小时马拉松赛)


by QLU_杨光耀