結果
| 問題 | No.2862 NOT FOUND 404 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-30 21:29:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 240 bytes |
| コンパイル時間 | 1,474 ms |
| コンパイル使用メモリ | 166,100 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-08-30 21:29:03 |
| 合計ジャッジ時間 | 2,172 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 7 WA * 5 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
int n;
cin >> n >> s;
for(int i=0;i<n-2;i++){
if(s[i]=='4'&&s[i+1]=='0'&&s[i+2]=='4'){cout << "Found"<< endl; return 0;}
cout << "NotFound" << endl;
return 0;
}
}