結果

問題 No.390 最長の数列
ユーザー %20%20
提出日時 2017-08-28 01:42:12
言語 Perl
(5.38.2)
結果
AC  
実行時間 4,525 ms / 5,000 ms
コード長 108 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 86,904 KB
最終ジャッジ日時 2024-04-24 00:40:36
合計ジャッジ時間 14,248 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 402 ms
69,376 KB
testcase_01 AC 200 ms
41,856 KB
testcase_02 AC 371 ms
69,376 KB
testcase_03 AC 284 ms
57,600 KB
testcase_04 AC 382 ms
69,376 KB
testcase_05 AC 233 ms
33,268 KB
testcase_06 AC 3,026 ms
86,656 KB
testcase_07 AC 230 ms
69,504 KB
testcase_08 AC 9 ms
12,928 KB
testcase_09 AC 229 ms
69,376 KB
testcase_10 AC 617 ms
57,592 KB
testcase_11 AC 677 ms
61,432 KB
testcase_12 AC 628 ms
59,752 KB
testcase_13 AC 1,014 ms
80,128 KB
testcase_14 AC 4,525 ms
86,904 KB
testcase_15 AC 9 ms
13,824 KB
testcase_16 AC 10 ms
13,824 KB
testcase_17 AC 27 ms
15,744 KB
testcase_18 AC 41 ms
18,304 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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