結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2019-05-01 19:03:37 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-22 23:37:18 |
合計ジャッジ時間 | 835 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
// yukicoder: No. 700 LOVE // 2019.5.1 bal4u #include <stdio.h> #include <string.h> char s[55]; char *a = "LOVE"; int main() { int r, c, n, m; scanf("%d%d", &n, &m); for (r = 0; r < n; r++) { scanf("%s", s); for (c = 3; c < m; c++) { if (memcmp(s+c-3, a, 4) == 0) { puts("YES"); return 0; } } } puts("NO"); return 0; }