⌨️

[AtCoder]ABC-418|A - I'm a teapot

に公開

設問ページ

提出結果

def getInt():
    return int(input())


def getString():
    return input()


def main():
    N = getInt()
    S = getString()

    print("Yes" if S.endswith("tea") else "No")


if __name__ == "__main__":
    main()

Discussion