結果
問題 | No.2862 NOT FOUND 404 |
ユーザー |
|
提出日時 | 2024-08-30 21:21:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 530 bytes |
コンパイル時間 | 2,658 ms |
コンパイル使用メモリ | 243,616 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-30 21:21:21 |
合計ジャッジ時間 | 3,277 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; constexpr int inf = 1073741823; constexpr long long linf = 0xfffffffffffffff; using ll = long long; using ld = long double; int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin >> n; string s; cin >> s; bool f = true; for(int i = 0; i < n - 2; i++) { if(s[i] == '4' && s[i + 1] == '0' && s[i + 2] == '4') f = false; } if(!f) { cout << "Found" << endl; }else { cout << "NotFound" << endl; } }