結果

問題 No.700 LOVE
ユーザー aguroshouaguroshou
提出日時 2018-06-15 22:48:22
言語 C++11
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 650 bytes
コンパイル時間 1,212 ms
コンパイル使用メモリ 61,968 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 04:59:28
合計ジャッジ時間 1,474 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include <algorithm>
#include<string>
#include <bitset>
#include <vector>
using namespace std;
int main()
{
	//int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, ans = 0;
	long a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, k = 0, l = 0, ans = 0;
	//cout << LONG_MAX << endl;
	//string s[1001];

	char x[10000];
	cin >> a;
	cin >> b;
	for (c = 0; c < a*b; c++)
	{
		cin >> x[c];
	}
	for (c = 0; c < a*b - 3; c++)
	{
		if (x[c] == 'L'&&x[c + 1] == 'O'&&x[c + 2] == 'V'&&x[c + 3] == 'E')
		{
			cout << "YES" << endl;
			return 0;
		}
	}
	cout << "NO" << endl;




	//cout << ans << endl;
	return 0;
}
0