結果

問題 No.390 最長の数列
ユーザー tailstails
提出日時 2016-07-08 23:36:39
言語 Perl
(5.38.2)
結果
AC  
実行時間 3,313 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 86,656 KB
最終ジャッジ日時 2024-04-10 08:52:30
合計ジャッジ時間 11,106 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 367 ms
69,376 KB
testcase_01 AC 170 ms
41,856 KB
testcase_02 AC 340 ms
69,632 KB
testcase_03 AC 242 ms
57,472 KB
testcase_04 AC 332 ms
69,504 KB
testcase_05 AC 147 ms
28,916 KB
testcase_06 AC 2,136 ms
86,656 KB
testcase_07 AC 210 ms
69,376 KB
testcase_08 AC 3 ms
6,940 KB
testcase_09 AC 223 ms
69,504 KB
testcase_10 AC 417 ms
56,560 KB
testcase_11 AC 506 ms
60,532 KB
testcase_12 AC 446 ms
58,736 KB
testcase_13 AC 770 ms
78,208 KB
testcase_14 AC 3,313 ms
86,644 KB
testcase_15 AC 10 ms
13,824 KB
testcase_16 AC 8 ms
13,696 KB
testcase_17 AC 20 ms
15,488 KB
testcase_18 AC 29 ms
18,048 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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