結果

問題 No.664 超能力者Aと株価予測
ユーザー tailstails
提出日時 2018-03-10 00:21:44
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-19 05:57:27
合計ジャッジ時間 9,998 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
6,816 KB
testcase_01 AC 57 ms
6,940 KB
testcase_02 AC 99 ms
6,940 KB
testcase_03 AC 16 ms
6,940 KB
testcase_04 AC 16 ms
6,944 KB
testcase_05 AC 16 ms
6,940 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 836 ms
6,944 KB
testcase_09 AC 181 ms
6,940 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 1,731 ms
6,940 KB
testcase_13 WA -
testcase_14 AC 35 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::m" used only once: possible typo at Main.pl line 3.
Name "main::n" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

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

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

for(<>){
	$_+=0;
	for$i(0..19){
		for$j($_..300){
			$b{$i,$_}=max($b{$i,$_},$b{$i,$j});
		}
	}
	%c=%b;
	for$i(0..19){
		for$j(100..$_){
			$k=max($k,$b{$i+1,300}=max($b{$i+1,300},int($c{$i,$j}/$j)*$_+$c{$i,$j}%$j));
		}
	}
}
print $k;
0