結果

問題 No.527 ナップサック容量問題
ユーザー tailstails
提出日時 2021-04-14 09:58:10
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,982 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 5,284 KB
実行使用メモリ 10,236 KB
最終ジャッジ日時 2023-09-12 23:18:18
合計ジャッジ時間 21,144 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,608 KB
testcase_01 AC 4 ms
4,764 KB
testcase_02 AC 3 ms
4,808 KB
testcase_03 AC 5 ms
4,800 KB
testcase_04 AC 2 ms
4,488 KB
testcase_05 AC 322 ms
6,748 KB
testcase_06 AC 1,452 ms
9,836 KB
testcase_07 AC 927 ms
8,440 KB
testcase_08 AC 225 ms
6,520 KB
testcase_09 AC 3 ms
4,716 KB
testcase_10 AC 1,394 ms
9,304 KB
testcase_11 AC 599 ms
7,668 KB
testcase_12 AC 356 ms
6,956 KB
testcase_13 AC 1,605 ms
9,960 KB
testcase_14 AC 242 ms
6,716 KB
testcase_15 AC 546 ms
7,764 KB
testcase_16 AC 4 ms
4,692 KB
testcase_17 AC 323 ms
6,992 KB
testcase_18 AC 438 ms
7,432 KB
testcase_19 AC 8 ms
4,952 KB
testcase_20 AC 202 ms
6,384 KB
testcase_21 AC 1,816 ms
9,888 KB
testcase_22 AC 950 ms
8,820 KB
testcase_23 AC 1,479 ms
9,340 KB
testcase_24 AC 87 ms
6,096 KB
testcase_25 AC 731 ms
8,216 KB
testcase_26 AC 643 ms
7,660 KB
testcase_27 AC 719 ms
8,132 KB
testcase_28 AC 538 ms
7,944 KB
testcase_29 AC 1,982 ms
10,236 KB
testcase_30 AC 3 ms
4,492 KB
testcase_31 AC 5 ms
4,776 KB
testcase_32 AC 7 ms
4,588 KB
testcase_33 AC 6 ms
4,744 KB
testcase_34 AC 7 ms
4,540 KB
testcase_35 AC 568 ms
7,800 KB
testcase_36 AC 5 ms
4,872 KB
testcase_37 AC 331 ms
7,124 KB
testcase_38 AC 427 ms
7,352 KB
testcase_39 AC 412 ms
7,120 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "inf" may clash with future reserved word at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

*1=!<>;map$'?$@[$_+$']+=$-=$@[$_]+$`-$@[$_+$']:(${$@[$_]<=>$`}=$_),sort{1}!/\s/..@@for<>;print$0||1,$/,$1?$1-1:inf
0