結果
問題 | No.1611 Minimum Multiple with Double Divisors |
ユーザー |
![]() |
提出日時 | 2025-01-04 17:57:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 521 ms / 2,000 ms |
コード長 | 528 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 82,672 KB |
実行使用メモリ | 77,552 KB |
最終ジャッジ日時 | 2025-01-04 17:57:48 |
合計ジャッジ時間 | 13,154 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
P=[2,3,5,7,11,13,17,19,23,29] d=[[],[]] for i in range(2,30): x=i c=[0]*len(P) for j in range(len(P)): p=P[j] while x%p==0: x//=p c[j]+=1 d+=[[tuple([j,c[j]]) for j in range(len(P)) if c[j]>0]] T=int(input()) for _ in range(T): X=int(input()) x=X c=[0]*len(P) a=1 for i in range(len(P)): p=P[i] while x%p==0: x//=p c[i]+=1 a*=c[i]+1 for i in range(2,30): b=a for j,e in d[i]: b//=c[j]+1 b*=c[j]+e+1 if a*2==b: print(X*i) break