結果
| 問題 | No.527 ナップサック容量問題 |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2018-05-31 20:24:26 |
| 言語 | Perl (5.40.0) |
| 結果 |
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 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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. 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
ソースコード
<>;/ /?map$d[$_+$']+=$-=$d[$_]+$`-$d[$_+$'],sort{1}0..@d:${/^/;${(a..c)[$_<=>$']}||=$i-1,$i++for@d}for<>;print$a+1||1,$/,$b||inf
%20