Problem B: 截取单链表中的后k个节点

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:13 Solved:1

Description

截取单链表中的后k个节点

Input

1,2,4,5,6,7,8,9 
K=3

Output

7,8,9

Sample Input Copy

1,2,4,5,6,7,8,9 
K=3

Sample Output Copy

7,8,9