結果

問題 No.268 ラッピング(Easy)
ユーザー tailstails
提出日時 2015-08-22 01:08:12
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 76 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 4,820 KB
最終ジャッジ日時 2023-08-25 02:14:57
合計ジャッジ時間 1,079 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,764 KB
testcase_01 AC 3 ms
4,720 KB
testcase_02 AC 3 ms
4,720 KB
testcase_03 AC 3 ms
4,784 KB
testcase_04 AC 2 ms
4,596 KB
testcase_05 AC 2 ms
4,768 KB
testcase_06 AC 2 ms
4,820 KB
testcase_07 AC 2 ms
4,656 KB
testcase_08 AC 2 ms
4,700 KB
testcase_09 AC 2 ms
4,504 KB
testcase_10 AC 3 ms
4,704 KB
testcase_11 AC 3 ms
4,560 KB
testcase_12 AC 3 ms
4,564 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::i" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

sub f{sort{$a-$b}<>=~/\d+/g}$s+=$_ for@a=f;$\+=2*$_*($s-$a[$i++])for f;print
0