結果

問題 No.527 ナップサック容量問題
ユーザー %20%20
提出日時 2018-05-31 20:18:43
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,966 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 422 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 10,068 KB
最終ジャッジ日時 2023-09-12 21:04:31
合計ジャッジ時間 21,092 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,544 KB
testcase_01 AC 4 ms
4,620 KB
testcase_02 AC 3 ms
4,528 KB
testcase_03 AC 4 ms
4,812 KB
testcase_04 AC 3 ms
4,620 KB
testcase_05 AC 328 ms
6,768 KB
testcase_06 AC 1,453 ms
9,792 KB
testcase_07 AC 931 ms
8,640 KB
testcase_08 AC 225 ms
6,528 KB
testcase_09 AC 3 ms
4,680 KB
testcase_10 AC 1,389 ms
9,576 KB
testcase_11 AC 600 ms
7,396 KB
testcase_12 AC 357 ms
6,988 KB
testcase_13 AC 1,601 ms
10,032 KB
testcase_14 AC 242 ms
6,768 KB
testcase_15 AC 547 ms
7,692 KB
testcase_16 AC 5 ms
4,648 KB
testcase_17 AC 320 ms
6,900 KB
testcase_18 AC 436 ms
7,276 KB
testcase_19 AC 8 ms
4,900 KB
testcase_20 AC 201 ms
6,516 KB
testcase_21 AC 1,809 ms
9,920 KB
testcase_22 AC 939 ms
8,872 KB
testcase_23 AC 1,466 ms
9,308 KB
testcase_24 AC 86 ms
5,928 KB
testcase_25 AC 730 ms
8,136 KB
testcase_26 AC 643 ms
7,796 KB
testcase_27 AC 714 ms
8,112 KB
testcase_28 AC 538 ms
7,896 KB
testcase_29 AC 1,966 ms
10,068 KB
testcase_30 AC 3 ms
4,524 KB
testcase_31 AC 5 ms
4,544 KB
testcase_32 AC 7 ms
4,652 KB
testcase_33 AC 6 ms
4,572 KB
testcase_34 AC 7 ms
4,588 KB
testcase_35 AC 576 ms
7,928 KB
testcase_36 AC 5 ms
4,964 KB
testcase_37 AC 333 ms
7,156 KB
testcase_38 AC 424 ms
7,480 KB
testcase_39 AC 411 ms
7,324 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 2.
Main.pl syntax OK

ソースコード

diff #

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