結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2020-03-13 13:22:59 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 352 bytes |
| 記録 | |
| コンパイル時間 | 928 ms |
| コンパイル使用メモリ | 181,140 KB |
| 実行使用メモリ | 9,856 KB |
| 最終ジャッジ日時 | 2026-09-27 20:30:42 |
| 合計ジャッジ時間 | 2,986 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_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