結果
| 問題 |
No.2862 NOT FOUND 404
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-30 21:32:52 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 509 bytes |
| コンパイル時間 | 4,020 ms |
| コンパイル使用メモリ | 287,704 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-08-30 21:32:57 |
| 合計ジャッジ時間 | 4,808 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define debug(...) ((void)0)
using namespace std;
using ll = long long;
using ld = long double;
void solve(int) {
int N;
string S;
cin >> N >> S;
for (int i = 0; i + 2 < N; i++) {
if (S[i] == '4' && S[i + 1] == '0' && S[i + 2] == '4') {
cout << "Found" << endl;
return;
}
}
cout << "NotFound" << endl;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve(0);
}