結果
問題 | No.1611 Minimum Multiple with Double Divisors |
ユーザー |
![]() |
提出日時 | 2024-03-04 18:22:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 384 ms / 2,000 ms |
コード長 | 502 bytes |
コンパイル時間 | 399 ms |
コンパイル使用メモリ | 82,096 KB |
実行使用メモリ | 95,820 KB |
最終ジャッジ日時 | 2024-09-29 17:30:12 |
合計ジャッジ時間 | 8,425 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
def get(x):r = []for p in ps:c = 0while x%p==0:x //= pc += 1r.append(c)return rps = [2,3,5,7,11,13,17,19,23,29,31]t,*a = map(int,open(0).read().split())plst =[[0]*11] + [get(i) for i in range(1,32)]for x in a:lst = get(x)yx = 1for i in lst: yx *= i+1for r in range(2,32):yr = 1for i,j in zip(lst,plst[r]):yr *= i+j+1if yr == 2*yx:print(x*r)break