結果
| 問題 |
No.847 Divisors of Power
|
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2019-07-05 22:04:55 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 2,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 430 ms |
| コンパイル使用メモリ | 6,820 KB |
| 実行使用メモリ | 15,832 KB |
| 最終ジャッジ日時 | 2024-10-06 21:43:10 |
| 合計ジャッジ時間 | 1,645 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
| 外部呼び出し有り |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
コンパイルメッセージ
Useless use of non-destructive substitution (s///r) in void context at Main.pl line 2. Main.pl syntax OK
ソースコード
($N,$K,$M)=glob<>;
`factor $N`=~s/( \d+)\1*/push@_,[$1,$&=~y! !!*$K]/ger;
@z=1;
for(@_){
($a,$n)=@$_;
@t=();
$x=1;
for(1..$n){
$x*=$a;
$x>$M&&last;
for$z(@z){
$z*$x>$M&&last;
push@t,$z*$x
}
}
@z=sort{$a-$b}@z,@t
}
print@z.$/
%20