結果
| 問題 | No.527 ナップサック容量問題 |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2018-05-31 21:25:04 |
| 言語 | Perl (5.44.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,031 ms / 2,000 ms |
| + 219µs | |
| コード長 | 127 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 9,824 KB |
| 実行使用メモリ | 13,056 KB |
| 最終ジャッジ日時 | 2026-10-13 19:46:06 |
| 合計ジャッジ時間 | 11,101 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 40 |
コンパイルメッセージ
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)=glob,map$w?$@[$_+$w]+=$-=$@[$_]+$v-$@[$_+$w]:(${(a..c)[$@[$_]<=>$v]}=$_-1),sort{1}0..@@for<>;print$a+1||1,$/,$b||inf
%20