⌨️

[AtCoder]ABC-060|A - Shiritori

2022/12/28に公開

設問ページ

提出結果

def getStringMap():
    return input().split()


def main():
    a, b, c = getStringMap()

    print('YES' if a[-1] == b[0] and b[-1] == c[0] else 'NO')


if __name__ == "__main__":
    main()

Discussion