結果

問題 No.390 最長の数列
ユーザー %20%20
提出日時 2017-08-28 01:00:43
言語 Perl
(5.38.2)
結果
AC  
実行時間 3,093 ms / 5,000 ms
コード長 132 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 59,048 KB
最終ジャッジ日時 2024-04-24 00:31:29
合計ジャッジ時間 9,234 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
6,016 KB
testcase_01 AC 7 ms
6,016 KB
testcase_02 AC 8 ms
5,888 KB
testcase_03 AC 7 ms
6,016 KB
testcase_04 AC 8 ms
6,016 KB
testcase_05 AC 406 ms
42,432 KB
testcase_06 AC 3,093 ms
59,048 KB
testcase_07 AC 7 ms
6,016 KB
testcase_08 AC 12 ms
13,696 KB
testcase_09 AC 322 ms
38,400 KB
testcase_10 AC 765 ms
46,900 KB
testcase_11 AC 829 ms
48,820 KB
testcase_12 AC 780 ms
47,924 KB
testcase_13 AC 1,170 ms
54,268 KB
testcase_14 AC 640 ms
35,564 KB
testcase_15 AC 7 ms
6,016 KB
testcase_16 AC 12 ms
14,208 KB
testcase_17 AC 36 ms
15,616 KB
testcase_18 AC 57 ms
17,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::N" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

$N=<>;
@x=sort{$a-$b}glob<>;
for$x(@x){
	$\+=$-=++$d[$x]-$\;
	for($i=2*$x;$i<=$x[-1];$i+=$x){
		$d[$i]+=$-=$d[$x]-$d[$i]
	}
}
print
0