結果
問題 |
No.1611 Minimum Multiple with Double Divisors
|
ユーザー |
![]() |
提出日時 | 2021-07-30 10:43:50 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 349 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 86,272 KB |
最終ジャッジ日時 | 2024-09-15 06:31:55 |
合計ジャッジ時間 | 8,269 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | TLE * 1 -- * 36 |
ソースコード
N=int(input()) def m(n): lower_divisors , upper_divisors = [], [] i = 1 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] for i in range(N): d=int(input()) cnta=len(m(d)) for j in range(2,10001): cntb=len(m(j*d)) if cnta*2==cntb: print(d*j) break