結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2022-10-23 09:24:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 2,164 ms |
コンパイル使用メモリ | 198,056 KB |
最終ジャッジ日時 | 2025-02-08 11:41:17 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#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-3;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; }