結果

問題 No.527 ナップサック容量問題
ユーザー %20%20
提出日時 2018-05-31 20:24:26
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,727 ms / 2,000 ms
コード長 128 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 9,472 KB
最終ジャッジ日時 2024-06-30 08:39:10
合計ジャッジ時間 18,460 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
5,504 KB
testcase_01 AC 4 ms
5,632 KB
testcase_02 AC 3 ms
5,376 KB
testcase_03 AC 5 ms
5,504 KB
testcase_04 AC 3 ms
5,376 KB
testcase_05 AC 281 ms
7,168 KB
testcase_06 AC 1,278 ms
9,088 KB
testcase_07 AC 813 ms
8,320 KB
testcase_08 AC 195 ms
6,784 KB
testcase_09 AC 3 ms
5,376 KB
testcase_10 AC 1,242 ms
8,832 KB
testcase_11 AC 525 ms
7,552 KB
testcase_12 AC 314 ms
7,168 KB
testcase_13 AC 1,415 ms
9,216 KB
testcase_14 AC 208 ms
7,040 KB
testcase_15 AC 482 ms
7,808 KB
testcase_16 AC 5 ms
5,504 KB
testcase_17 AC 282 ms
7,040 KB
testcase_18 AC 380 ms
7,296 KB
testcase_19 AC 8 ms
5,760 KB
testcase_20 AC 178 ms
6,784 KB
testcase_21 AC 1,610 ms
9,216 KB
testcase_22 AC 823 ms
8,448 KB
testcase_23 AC 1,296 ms
8,832 KB
testcase_24 AC 76 ms
6,400 KB
testcase_25 AC 641 ms
8,064 KB
testcase_26 AC 562 ms
7,680 KB
testcase_27 AC 620 ms
8,064 KB
testcase_28 AC 472 ms
7,808 KB
testcase_29 AC 1,727 ms
9,472 KB
testcase_30 AC 3 ms
5,376 KB
testcase_31 AC 6 ms
5,632 KB
testcase_32 AC 8 ms
5,504 KB
testcase_33 AC 6 ms
5,504 KB
testcase_34 AC 7 ms
5,504 KB
testcase_35 AC 486 ms
7,936 KB
testcase_36 AC 6 ms
5,504 KB
testcase_37 AC 290 ms
7,168 KB
testcase_38 AC 369 ms
7,424 KB
testcase_39 AC 361 ms
7,424 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.
Useless use of a variable in void context at Main.pl line 1.
Unquoted string "inf" may clash with future reserved word at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

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