結果
問題 |
No.700 LOVE
|
ユーザー |
|
提出日時 | 2018-09-21 18:09:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 816 ms |
コンパイル使用メモリ | 72,704 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 23:31:35 |
合計ジャッジ時間 | 1,310 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; int main() { string love = "LOVE"; int n, m; cin >> n >> m; vector<string> str; str.resize(n); for (int i = 0;i < n;i++) { cin >> str[i]; int index= str[i].find(love); if (index != -1) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }