結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
6,144 KB
testcase_01 AC 14 ms
6,144 KB
testcase_02 AC 30 ms
6,272 KB
testcase_03 AC 8 ms
6,016 KB
testcase_04 AC 8 ms
6,016 KB
testcase_05 AC 7 ms
6,144 KB
testcase_06 AC 149 ms
6,400 KB
testcase_07 AC 125 ms
6,400 KB
testcase_08 AC 753 ms
6,528 KB
testcase_09 AC 225 ms
6,528 KB
testcase_10 AC 680 ms
6,400 KB
testcase_11 AC 1,145 ms
6,528 KB
testcase_12 AC 1,456 ms
6,528 KB
testcase_13 AC 901 ms
6,272 KB
testcase_14 AC 17 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<>;
$0[300]=$\;

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