题解 | #输出单向链表中倒数第k个结点#

输出单向链表中倒数第k个结点

http://www.nowcoder.com/practice/54404a78aec1435a81150f15f899417d

奇怪的一道题
# s = list(map(int, input().split()))
while True:
    try:
        a = int(input())
        b = list(map(int, input().split()))
        c = int(input())
        try:
            print(b[a-c])
        except:
            print(0)
    except EOFError:
        break

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务