結果
| 問題 |
No.700 LOVE
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-14 21:55:12 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 301 bytes |
| コンパイル時間 | 109 ms |
| コンパイル使用メモリ | 27,776 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 23:37:43 |
| 合計ジャッジ時間 | 805 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include<stdio.h>
#include<string.h>
int main(){
int N,M;
char s[51];
scanf("%d %d",&N,&M);
for(int i=0;i<N;i++){
scanf("%s",s);
if(strstr(s,"LOVE") != 0){
printf("YES");
return 0;
}
}
printf("NO");
return 0;
}