結果
問題 | No.700 LOVE |
ユーザー |
![]() |
提出日時 | 2019-11-30 08:18:59 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 28,800 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-22 23:41:37 |
合計ジャッジ時間 | 770 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <stdio.h> #include <string.h> int main() { int n, m, flg=0; scanf("%d %d", &n, &m); for (int i=0; i<n; i++) { char s[m+1]; scanf("%s", s); if (strstr(s, "LOVE")!=NULL) flg=1; } printf("%s\n", flg==1? "YES": "NO"); return 0; }