結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2018-07-14 07:14:59 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 05:58:51 |
合計ジャッジ時間 | 936 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 8 WA * 8 |
ソースコード
#include<stdio.h> #include<string.h> int main(void){ int n, m, i; char s[50][51]; m = 0; scanf("%d%d", &n, &m); for(i=0;i<n;i++){ scanf("%s",s[i]); if(strstr(s[i],"LOVE") != NULL) m+=1; } if(m>0) printf("YES"); else printf("NO"); return 0; }