結果
| 問題 | No.390 最長の数列 |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-08-28 01:07:04 |
| 言語 | Perl (5.44.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 2,067 ms / 5,000 ms |
| + 784µs | |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 668 ms |
| コンパイル使用メモリ | 7,852 KB |
| 実行使用メモリ | 90,540 KB |
| 最終ジャッジ日時 | 2026-09-19 14:03:29 |
| 合計ジャッジ時間 | 7,347 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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$%
%20