結果

問題 No.390 最長の数列
ユーザー %20%20
提出日時 2017-08-28 01:33:36
言語 Perl
(5.38.2)
結果
AC  
実行時間 3,750 ms / 5,000 ms
コード長 122 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 86,532 KB
最終ジャッジ日時 2024-04-24 00:34:56
合計ジャッジ時間 11,705 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 359 ms
69,376 KB
testcase_01 AC 177 ms
41,856 KB
testcase_02 AC 327 ms
69,504 KB
testcase_03 AC 239 ms
57,600 KB
testcase_04 AC 343 ms
69,376 KB
testcase_05 AC 162 ms
33,272 KB
testcase_06 AC 2,443 ms
86,528 KB
testcase_07 AC 210 ms
69,376 KB
testcase_08 AC 9 ms
13,056 KB
testcase_09 AC 213 ms
69,376 KB
testcase_10 AC 493 ms
57,596 KB
testcase_11 AC 542 ms
61,684 KB
testcase_12 AC 516 ms
59,640 KB
testcase_13 AC 801 ms
80,000 KB
testcase_14 AC 3,750 ms
86,532 KB
testcase_15 AC 10 ms
14,080 KB
testcase_16 AC 9 ms
13,568 KB
testcase_17 AC 22 ms
15,872 KB
testcase_18 AC 31 ms
18,304 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;$/=$";
for(sort{$a-$b}<>){
	($x=++$d[$_])>$%and$%=$x;
	for($i=$_;($i+=$_)<=1e6;){
		$x>$d[$i]and$d[$i]=$x
	}
}
print$%
0