結果

問題 No.476 正しくない平均
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-15 18:52:27
言語 PHP
(8.3.4)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 30,860 KB
実行使用メモリ 31,384 KB
最終ジャッジ日時 2024-04-16 21:50:53
合計ジャッジ時間 2,247 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
31,164 KB
testcase_01 AC 43 ms
31,276 KB
testcase_02 AC 41 ms
31,292 KB
testcase_03 AC 42 ms
30,936 KB
testcase_04 AC 43 ms
31,040 KB
testcase_05 AC 43 ms
31,020 KB
testcase_06 AC 45 ms
31,240 KB
testcase_07 AC 42 ms
31,236 KB
testcase_08 AC 42 ms
31,384 KB
testcase_09 AC 42 ms
31,104 KB
testcase_10 AC 42 ms
31,156 KB
testcase_11 AC 42 ms
31,152 KB
testcase_12 AC 42 ms
31,108 KB
testcase_13 AC 42 ms
31,256 KB
testcase_14 AC 42 ms
31,268 KB
testcase_15 AC 42 ms
31,128 KB
testcase_16 AC 42 ms
31,192 KB
testcase_17 AC 42 ms
31,028 KB
testcase_18 AC 41 ms
30,864 KB
testcase_19 AC 42 ms
31,036 KB
testcase_20 AC 42 ms
31,188 KB
testcase_21 AC 41 ms
31,220 KB
testcase_22 AC 42 ms
31,352 KB
testcase_23 AC 42 ms
30,980 KB
testcase_24 AC 43 ms
31,312 KB
testcase_25 AC 42 ms
30,776 KB
testcase_26 AC 42 ms
31,244 KB
testcase_27 AC 41 ms
31,200 KB
testcase_28 AC 41 ms
31,120 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$array = explode(" ", trim(fgets(STDIN)));
$x = explode(" ", trim(fgets(STDIN)));
$sum = 0;
for($i = 0; $i < $array[0]; $i++) {
  $sum += $x[$i];
}
$ans = 'NO';
if($array[0] * $array[1] == $sum) $ans = 'YES';
print($ans);
?>
0