結果
| 問題 |
No.1611 Minimum Multiple with Double Divisors
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-23 00:12:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 337 bytes |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 82,816 KB |
| 実行使用メモリ | 77,568 KB |
| 最終ジャッジ日時 | 2024-07-17 21:30:30 |
| 合計ジャッジ時間 | 10,455 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 WA * 32 |
ソースコード
primes = [2,3,7,11,13,17,19,23,29,31]
def f(x):
tmp = x
coordinate = []
for p in primes:
cnt = 0
while tmp % p == 0:
tmp = tmp//p
cnt += 1
coordinate.append(p**(cnt+1))
return min(coordinate) * x
T = int(input())
for _ in range(T):
x = int(input())
print(f(x))