結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2020-03-13 13:22:59 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| 記録 | |
| コンパイル時間 | 1,062 ms |
| コンパイル使用メモリ | 180,436 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-16 03:53:27 |
| 合計ジャッジ時間 | 1,967 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
string s;
for( int i = 0; i < n; i++ ) {
string ss;
cin >> ss;
s += ss;
}
string ans = "NO";
for( int i = 0; i < s.size() - 3; i++ ) {
if( s[i] == 'L' && s[i + 1] == 'O' && s[i + 2] == 'V' && s[i + 3] == 'E' ) ans = "YES";
}
cout << ans << endl;
}
forest3