結果
| 問題 | No.527 ナップサック容量問題 |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2018-05-31 21:13:05 |
| 言語 | Perl (5.42.1) |
| 結果 |
AC
|
| 実行時間 | 517 ms / 2,000 ms |
| コード長 | 128 bytes |
| 記録 | |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 7,844 KB |
| 実行使用メモリ | 9,088 KB |
| 最終ジャッジ日時 | 2026-03-20 04:22:38 |
| 合計ジャッジ時間 | 6,313 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
コンパイルメッセージ
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
ソースコード
<>;($v,$w)=split,map$w?$@[$_+$w]+=$-=$@[$_]+$v-$@[$_+$w]:(${(a..c)[$@[$_]<=>$v]}=$_-1),sort{1}0..@@for<>;print$a+1||1,$/,$b||inf
%20