結果

問題 No.1940 Escape through + -
ユーザー SKSK
提出日時 2023-01-16 17:38:24
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 18,580 KB
実行使用メモリ 29,340 KB
最終ジャッジ日時 2023-08-30 00:48:42
合計ジャッジ時間 2,206 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 15 ms
18,924 KB
testcase_08 WA -
testcase_09 AC 15 ms
18,908 KB
testcase_10 AC 15 ms
18,824 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 15 ms
19,044 KB
testcase_15 WA -
testcase_16 AC 16 ms
18,916 KB
testcase_17 AC 15 ms
19,040 KB
testcase_18 AC 15 ms
18,920 KB
testcase_19 AC 15 ms
18,920 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 17 ms
18,712 KB
testcase_23 AC 17 ms
18,908 KB
testcase_24 AC 30 ms
27,020 KB
testcase_25 WA -
testcase_26 AC 31 ms
26,724 KB
testcase_27 WA -
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) % 2 == 0) {
    echo "Yes";
}else {
    echo "No";
}

?>
0