結果
問題 | No.700 LOVE |
ユーザー |
![]() |
提出日時 | 2018-07-31 15:41:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 660 ms |
コンパイル使用メモリ | 66,304 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 23:28:43 |
合計ジャッジ時間 | 1,398 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <iostream> #define FOR(i,x,y) for(int i=x;i<y;i++) using namespace std; int main(){ int n,m; string s; cin>>n>>m; FOR(i,0,n){ cin>>s; FOR(j,0,m-3){ if(s.substr(j,4)=="LOVE"){ cout<<"YES"<<endl; exit(0); } } } cout<<"NO"<<endl; }