結果
| 問題 |
No.700 LOVE
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-10-23 09:24:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 1,667 ms |
| コンパイル使用メモリ | 198,536 KB |
| 最終ジャッジ日時 | 2025-02-08 11:41:09 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int H,W;
cin>>H>>W;
vector<vector<char>> S(H,vector<char>(W));
for(int i=0;i<H;i++)for(int j=0;j<W;j++){
cin>>S[i][j];
}
for(int i=0;i<H;i++)for(int j=0;j<W-4;j++)if(S[i][j] == 'L' && S[i][j+1] == 'O' && S[i][j+2] == 'V' && S[i][j+3] == 'E'){
cout<<"YES"<<endl;
return 0;
}
cout<<"NO"<<endl;
}
keisuke6