結果
| 問題 |
No.1611 Minimum Multiple with Double Divisors
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-21 23:21:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 311 bytes |
| コンパイル時間 | 547 ms |
| コンパイル使用メモリ | 82,272 KB |
| 実行使用メモリ | 77,200 KB |
| 最終ジャッジ日時 | 2024-07-17 20:38:52 |
| 合計ジャッジ時間 | 12,291 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 28 |
ソースコード
t = int(input()) divs = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73 ,79, 83, 89, 97] for i in range(t): n = int(input()) ans = pow(10, 30) for d in divs: cnt = 0 x = n while x % d == 0: x /= d cnt += 1 ans = min(ans, n * pow(d, cnt + 1)) print(ans)