結果
| 問題 |
No.2862 NOT FOUND 404
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-30 21:36:39 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 2,891 ms |
| コンパイル使用メモリ | 245,372 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-08-30 21:36:43 |
| 合計ジャッジ時間 | 3,627 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 2 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
ll n;
cin>>n;
string s;
cin>>s;
for(ll i=0;i<n-3;i++){
ll n1=s[i]-'0';
ll n2=s[i+1]-'0';
ll n3=s[i+2]-'0';
if(n1==4&&n2==0&&n3==4){
cout<<"Found"<<endl;
exit(0);
}
}
cout<<"NotFound"<<endl;
}