結果

問題 No.1940 Escape through + -
ユーザー SKSK
提出日時 2023-01-16 17:35:28
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 1,305 ms
コンパイル使用メモリ 18,600 KB
実行使用メモリ 29,184 KB
最終ジャッジ日時 2023-08-30 00:45:07
合計ジャッジ時間 4,193 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
18,968 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
18,924 KB
testcase_12 AC 15 ms
18,756 KB
testcase_13 AC 15 ms
18,852 KB
testcase_14 AC 15 ms
18,784 KB
testcase_15 WA -
testcase_16 AC 15 ms
18,920 KB
testcase_17 WA -
testcase_18 AC 15 ms
18,788 KB
testcase_19 WA -
testcase_20 AC 16 ms
19,000 KB
testcase_21 AC 16 ms
18,944 KB
testcase_22 AC 17 ms
19,028 KB
testcase_23 WA -
testcase_24 AC 30 ms
27,076 KB
testcase_25 WA -
testcase_26 AC 31 ms
27,128 KB
testcase_27 AC 31 ms
29,176 KB
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
[$n,$m,$s] = explode(" ",trim(fgets(STDIN)));
$a = explode(" ",trim(fgets(STDIN)));
$count = 0;

for ($i = 0; $i < $n; $i++) {
     $count += $a[$i];
}

if (($s-$count)/$m == 0) {
    echo "Yes";
}else {
    echo "No";
}

?>
0