結果
問題 | No.700 LOVE |
ユーザー |
![]() |
提出日時 | 2018-06-23 18:44:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 520 bytes |
コンパイル時間 | 1,346 ms |
コンパイル使用メモリ | 159,056 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 18:31:27 |
合計ジャッジ時間 | 2,046 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main(){ cin.tie(0); ios::sync_with_stdio(false); int n,m; cin >> n >> m; char a[n][m]; rep(i,n){ rep(j,m){ cin >> a[i][j]; } } rep(i,n){ rep(j,m){ if(a[i][j] == 'L' && a[i][j + 1] == 'O' && a[i][j + 2] == 'V' && a[i][j + 3] == 'E'){ cout << "YES" << endl; return 0; } } } cout << "NO" << endl; return 0; }