結果

問題 No.2862 NOT FOUND 404
ユーザー Hyoka7
提出日時 2024-08-30 23:22:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 53,368 KB
最終ジャッジ日時 2024-08-30 23:22:03
合計ジャッジ時間 1,763 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())
    s = input().strip()
    for i in range(n - 2):
        if s[i] == "4" and s[i + 1] == "0" and s[i + 2] == "4":
            print("Found")
            exit(0)
    print("NotFound")


main()
0