結果

問題 No.700 LOVE
ユーザー mondomondo
提出日時 2019-08-05 16:57:51
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 587 ms
コンパイル使用メモリ 11,968 KB
実行使用メモリ 12,336 KB
最終ジャッジ日時 2023-09-25 17:20:49
合計ジャッジ時間 1,944 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 8 ms
12,260 KB
testcase_02 AC 8 ms
12,260 KB
testcase_03 AC 7 ms
12,228 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 7 ms
12,288 KB
testcase_07 AC 8 ms
12,268 KB
testcase_08 WA -
testcase_09 AC 7 ms
12,288 KB
testcase_10 AC 7 ms
12,168 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 7 ms
12,188 KB
testcase_15 AC 8 ms
12,192 KB
testcase_16 AC 7 ms
12,188 KB
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$count = explode(" ",trim(fgets(STDIN)));
$array = array();
for ($i = 0; $i < $count[0]; $i++) {
    $array[] = trim(fgets(STDIN));
}
$ans = "NO";
foreach ($array as $value){
    if (preg_match("/LOVE/", $value) >= 1) {
    $ans ++;
    }
}
echo $ans;
0