题解 | #输出单向链表中倒数第k个结点#
输出单向链表中倒数第k个结点
http://www.nowcoder.com/practice/54404a78aec1435a81150f15f899417d
# -*-coding:utf-8-*-
while True:
try:
input_n = int(input())
input_ss = list(input().split(" "))
input_k = int(input())
if input_ss[-input_k] and input_k !=0:
print(input_ss[-input_k])
else:print('0')
except:
break