How to write perl fixed range inner loop

Hello. I want the program to complete and form the following file
, but the perl program cannot be written. Can you be busy

?

id times
1 2
21
3 3
results in
id start
11 10
1 11 20
21 10
3 1 10
3 11 20
3 21 30

Aug.25,2021
Menu