結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,448 KB
testcase_01 AC 3 ms
4,424 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,556 KB
testcase_10 AC 2 ms
4,556 KB
testcase_11 AC 3 ms
4,544 KB
testcase_12 AC 2 ms
4,556 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,508 KB
testcase_15 AC 2 ms
4,508 KB
testcase_16 AC 2 ms
4,596 KB
testcase_17 AC 3 ms
4,544 KB
testcase_18 AC 3 ms
4,576 KB
testcase_19 WA -
testcase_20 AC 2 ms
4,556 KB
testcase_21 AC 2 ms
4,524 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,520 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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