题解 | #输出单向链表中倒数第k个结点#
输出单向链表中倒数第k个结点
http://www.nowcoder.com/practice/54404a78aec1435a81150f15f899417d
import sys while True: try: N = int(input()) L = list(map(int, input().split())) I = int(input()) if I <= 0 or I > N: print(0)#空指针输出0 else: print(L[-I]) except: # print(sys.exc_info()) break