結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2018-08-01 10:49:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 645 bytes |
コンパイル時間 | 742 ms |
コンパイル使用メモリ | 81,000 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 23:28:47 |
合計ジャッジ時間 | 1,505 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <iostream> #include <vector> #include <map> #include <string> #include <utility> #include <queue> #include <stack> #include <cmath> #include <numeric> #include <algorithm> #define rep(i,j,k) for(int i=(int)j;i<(int)k;i++) #define ll long long #define all(v) ((v).begin(),(v).end()) #define Sort(v) sort(all(v)) #define INF 1000000000 using namespace std; int day[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ int n,m; cin>>n>>m; string s; rep(i,0,n){ cin>>s; if(s.find("LOVE")!=string::npos){ cout<<"YES"<<endl; return 0; } } cout<<"NO"<<endl; }