結果
問題 |
No.390 最長の数列
|
ユーザー |
![]() |
提出日時 | 2017-08-28 01:07:04 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 2,984 ms / 5,000 ms |
コード長 | 144 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 90,288 KB |
最終ジャッジ日時 | 2024-11-06 07:05:13 |
合計ジャッジ時間 | 9,080 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
コンパイルメッセージ
Name "main::N" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
$N=<>; @x=sort{$a-$b}glob<>; for$x(@x){ ++$d[$x]>$%and$%=$d[$x]; for($i=2*$x;$i<=$x[-1];$i+=$x){ $d[$x]>$d[$i]and$d[$i]=$d[$x] } } print$%