結果
| 問題 |
No.390 最長の数列
|
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-08-28 01:29:51 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 4,050 ms / 5,000 ms |
| コード長 | 134 bytes |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 90,496 KB |
| 最終ジャッジ日時 | 2024-11-06 07:07:47 |
| 合計ジャッジ時間 | 14,298 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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=<>;
for$x(sort{$a-$b}glob<>){
++$d[$x]>$%and$%=$d[$x];
for($i=2*$x;$i<=1e6;$i+=$x){
$d[$x]>$d[$i]and$d[$i]=$d[$x]
}
}
print$%
%20