题解 | #输出单向链表中倒数第k个结点#
输出单向链表中倒数第k个结点
https://www.nowcoder.com/practice/54404a78aec1435a81150f15f899417d
def func(): n = int(input()) nums = list(map(int, input().split())) k = int(input()) print(nums[-k]) # 倒数第k个,是负数 try: while True: func() except EOFError: pass