結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-15 22:21:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 626 ms |
| コンパイル使用メモリ | 69,664 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 23:13:30 |
| 合計ジャッジ時間 | 1,417 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main(){
int n, m;
cin >> n >> m;
for(int i = 0; i < n; i++){
string s;
cin >> s;
for(int i = 0; i < s.size() - 3; i++){
if(s.substr(i, 4) == "LOVE"){
cout << "YES" << endl;
return 0;
}
}
}
cout << "NO" << endl;
}