結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2018-09-24 21:35:58 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 389 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 29,056 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 07:00:26 |
合計ジャッジ時間 | 984 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 8 WA * 8 |
ソースコード
#include <stdio.h> #include <string.h> int main (void) { int n, m; int counter = 0; scanf("%d", &n); scanf("%d", &m); char s[n][m]; for (int i = 0; i < n; i++) { if (strstr(s[i], "LOVE") != NULL) { printf("YES\n"); counter = 1; return 0; } } printf("NO\n"); return 0; }