結果

問題 No.2862 NOT FOUND 404
ユーザー nhtloc
提出日時 2025-05-04 16:42:58
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 739 ms
コンパイル使用メモリ 67,144 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-05-04 16:43:00
合計ジャッジ時間 1,896 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main() {
    int N;
    string S;
    cin >> N >> S;

    for (int i = 0; i <= N - 3; i++) {
        if (S.substr(i, 3) == "404") {
            cout << "Found";
            return 0;
        }
    }

    cout << "NotFound";
    return 0;
}
0