题解 | #输出单向链表中倒数第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

全部评论

相关推荐

05-30 12:03
山西大学 C++
offer来了我跪着接:不是骗子,等到测评那一步就知道为啥这么高工资了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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