結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2018-07-17 20:17:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 596 bytes |
コンパイル時間 | 853 ms |
コンパイル使用メモリ | 96,112 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 10:49:09 |
合計ジャッジ時間 | 1,798 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 8 WA * 8 |
ソースコード
#include <stdio.h> #include <algorithm> #include <iostream> #include <string> #include <vector> #include <functional> #include <map> #include <iomanip> #include <math.h> #include <stack> #include <queue> #include <bitset> #include <cstdlib> #include <tuple> #include <cctype> using namespace std; int main() { int i, j, k; int n, m; vector<string>s(50); cin >> n >> m; for (i = 0; i < n; i++) { cin >> s[i]; } for (i = 0; i < n; i++) { if (s[i].find("LOVE") >= 1) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; getchar(); getchar(); return 0; }