結果

問題 No.198 キャンディー・ボックス2
ユーザー tailstails
提出日時 2015-04-28 23:42:05
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 93 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 4,624 KB
最終ジャッジ日時 2023-09-18 14:15:32
合計ジャッジ時間 1,532 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,612 KB
testcase_01 AC 3 ms
4,568 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
4,568 KB
testcase_10 AC 3 ms
4,448 KB
testcase_11 AC 3 ms
4,472 KB
testcase_12 AC 3 ms
4,524 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,568 KB
testcase_15 AC 2 ms
4,432 KB
testcase_16 AC 2 ms
4,512 KB
testcase_17 AC 3 ms
4,588 KB
testcase_18 AC 3 ms
4,568 KB
testcase_19 AC 2 ms
4,472 KB
testcase_20 AC 2 ms
4,500 KB
testcase_21 AC 3 ms
4,412 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 2 ms
4,476 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$b=<>;$n=<>;$s+=$_ for@c=<>;
$a=$s/$n+.5|0;
--$a if $a*$n>$s+$b;
$r+=abs($a-$_)for@c;
print$r
0