結果

問題 No.527 ナップサック容量問題
ユーザー tails
提出日時 2021-04-14 09:58:10
言語 Perl
(5.40.0)
結果
AC  
実行時間 1,894 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 9,344 KB
最終ジャッジ日時 2024-06-30 10:39:02
合計ジャッジ時間 20,236 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 37
権限があれば一括ダウンロードができます
コンパイルメッセージ
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