結果

問題 No.527 ナップサック容量問題
ユーザー %20%20
提出日時 2018-05-31 21:25:04
言語 Perl
(5.38.0)
結果
AC  
実行時間 877 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 890 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 10,736 KB
最終ジャッジ日時 2023-09-12 21:06:56
合計ジャッジ時間 10,808 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,080 KB
testcase_01 AC 7 ms
5,284 KB
testcase_02 AC 6 ms
5,236 KB
testcase_03 AC 7 ms
5,372 KB
testcase_04 AC 6 ms
5,108 KB
testcase_05 AC 151 ms
7,580 KB
testcase_06 AC 652 ms
10,288 KB
testcase_07 AC 419 ms
9,136 KB
testcase_08 AC 106 ms
7,060 KB
testcase_09 AC 6 ms
5,260 KB
testcase_10 AC 629 ms
9,856 KB
testcase_11 AC 274 ms
8,160 KB
testcase_12 AC 165 ms
7,552 KB
testcase_13 AC 726 ms
10,460 KB
testcase_14 AC 115 ms
7,292 KB
testcase_15 AC 253 ms
8,196 KB
testcase_16 AC 7 ms
5,320 KB
testcase_17 AC 150 ms
7,620 KB
testcase_18 AC 207 ms
7,800 KB
testcase_19 AC 9 ms
5,604 KB
testcase_20 AC 99 ms
6,920 KB
testcase_21 AC 817 ms
10,288 KB
testcase_22 AC 428 ms
9,372 KB
testcase_23 AC 663 ms
9,732 KB
testcase_24 AC 46 ms
6,660 KB
testcase_25 AC 335 ms
8,480 KB
testcase_26 AC 294 ms
8,436 KB
testcase_27 AC 331 ms
8,648 KB
testcase_28 AC 249 ms
8,532 KB
testcase_29 AC 877 ms
10,736 KB
testcase_30 AC 6 ms
5,064 KB
testcase_31 AC 7 ms
5,232 KB
testcase_32 AC 8 ms
5,192 KB
testcase_33 AC 8 ms
5,284 KB
testcase_34 AC 8 ms
5,208 KB
testcase_35 AC 273 ms
8,536 KB
testcase_36 AC 7 ms
5,416 KB
testcase_37 AC 163 ms
7,660 KB
testcase_38 AC 203 ms
7,996 KB
testcase_39 AC 197 ms
7,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "a" may clash with future reserved word at Main.pl line 1.
Unquoted string "c" may clash with future reserved word at Main.pl line 1.
Unquoted string "inf" may clash with future reserved word at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

<>;($v,$w)=glob,map$w?$@[$_+$w]+=$-=$@[$_]+$v-$@[$_+$w]:(${(a..c)[$@[$_]<=>$v]}=$_-1),sort{1}0..@@for<>;print$a+1||1,$/,$b||inf
0