题解 | #输出单向链表中倒数第k个结点#注意倒数第0个还是输出0
输出单向链表中倒数第k个结点
http://www.nowcoder.com/practice/54404a78aec1435a81150f15f899417d
while True:
try:
n = int(input())
num_list = [int(i) for i in input().split()]
k = int(input())
if k == 0:
print('0')
else:
print(num_list[-k])
except:
break
try:
n = int(input())
num_list = [int(i) for i in input().split()]
k = int(input())
if k == 0:
print('0')
else:
print(num_list[-k])
except:
break