結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
aguroshou
|
| 提出日時 | 2018-06-15 22:48:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 650 bytes |
| 記録 | |
| コンパイル時間 | 501 ms |
| コンパイル使用メモリ | 61,448 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 15:10:40 |
| 合計ジャッジ時間 | 1,476 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 3 |
ソースコード
#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;
}
aguroshou