結果

問題 No.664 超能力者Aと株価予測
ユーザー tailstails
提出日時 2018-03-10 01:48:01
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,285 ms / 4,000 ms
コード長 220 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-04-19 13:40:24
合計ジャッジ時間 5,754 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
5,888 KB
testcase_01 AC 15 ms
5,888 KB
testcase_02 AC 30 ms
5,888 KB
testcase_03 AC 8 ms
5,888 KB
testcase_04 AC 8 ms
5,888 KB
testcase_05 AC 7 ms
5,888 KB
testcase_06 AC 129 ms
5,888 KB
testcase_07 AC 114 ms
6,016 KB
testcase_08 AC 682 ms
6,144 KB
testcase_09 AC 193 ms
5,888 KB
testcase_10 AC 628 ms
6,016 KB
testcase_11 AC 1,026 ms
6,144 KB
testcase_12 AC 1,285 ms
6,272 KB
testcase_13 AC 758 ms
6,272 KB
testcase_14 AC 15 ms
6,016 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

sub max{$_[0]=$_[$_[0]<$_[1]]}

($n,$m,$\)=glob<>;
$b{0,300}=$\;

map{
	for$i(0..$m-1){
		for$j(100..300){
			$j<$_?max($\,max($b{$i+1,300},int($b{$i,$j}/$j)*$_+$b{$i,$j}%$j)):max($b{$i,$_+0},$b{$i,$j});
		}
	}
}<>;print
0