結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
suga___0125
|
| 提出日時 | 2018-06-15 22:26:05 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 531 bytes |
| 記録 | |
| コンパイル時間 | 549 ms |
| コンパイル使用メモリ | 65,404 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 23:15:47 |
| 合計ジャッジ時間 | 1,118 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int ans=0;
void aout(void){
cout<<ans<<endl;
}
void out(int a){
cout<<a<<endl;
}
int main(void){
int m,n;
cin>>m>>n;
string s[n];
for(int i=0;i<n;i++)cin>>s[i];
for(int i=0;i<m;i++){
for(int j=0;j<n-3;j++){
if(s[i][j]=='L'&&s[i][j+1]=='O'&&s[i][j+2]=='V'&&s[i][j+3]=='E'){
cout<<"YES\n";
return 0;
}
}
}
cout<<"NO\n";
return 0;
}
suga___0125