結果
| 問題 |
No.2862 NOT FOUND 404
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-07 16:57:40 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 321 bytes |
| コンパイル時間 | 1,875 ms |
| コンパイル使用メモリ | 193,804 KB |
| 最終ジャッジ日時 | 2025-02-24 05:09:10 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
string s;
cin >> n >> s;
bool check = 0;
for(int j = 0;j < n - 2;j++){
if(s.substr(j,3) == "404"){
check = 1;
}
}
if(check)cout << "Found" << endl;
else cout << "NotFound" << endl;
return 0;
}