⌨️

[AtCoder]ABC-295|A - Probably English

2023/08/30に公開

設問ページ

提出結果

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


def getStringList():
    return list(input().split())


def main():
    n = getInt()
    w = getStringList()
    d = ['and', 'not', 'that', 'the', 'you']

    w.sort()

    r = False
    for x in set(w):
        if x in d:
            r = True
            break

    print('Yes' if r else 'No')


if __name__ == "__main__":
    main()

Discussion