結果

問題 No.2862 NOT FOUND 404
ユーザー lam6er
提出日時 2025-03-26 15:44:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 82,472 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2025-03-26 15:44:11
合計ジャッジ時間 1,487 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input().strip()

found = False
for i in range(len(s) - 2):
    if s[i] == '4' and s[i+1] == '0' and s[i+2] == '4':
        found = True
        break

print("Found" if found else "NotFound")
0