結果
問題 | No.1611 Minimum Multiple with Double Divisors |
ユーザー | mkawa2 |
提出日時 | 2023-03-10 09:49:57 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 877 ms / 2,000 ms |
コード長 | 1,387 bytes |
コンパイル時間 | 380 ms |
コンパイル使用メモリ | 82,552 KB |
実行使用メモリ | 84,184 KB |
最終ジャッジ日時 | 2024-09-18 03:14:01 |
合計ジャッジ時間 | 11,487 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 877 ms
84,184 KB |
testcase_01 | AC | 374 ms
78,580 KB |
testcase_02 | AC | 366 ms
78,588 KB |
testcase_03 | AC | 358 ms
78,772 KB |
testcase_04 | AC | 364 ms
78,832 KB |
testcase_05 | AC | 367 ms
78,836 KB |
testcase_06 | AC | 373 ms
78,868 KB |
testcase_07 | AC | 366 ms
78,708 KB |
testcase_08 | AC | 367 ms
78,684 KB |
testcase_09 | AC | 376 ms
78,720 KB |
testcase_10 | AC | 238 ms
78,848 KB |
testcase_11 | AC | 258 ms
78,464 KB |
testcase_12 | AC | 258 ms
78,444 KB |
testcase_13 | AC | 257 ms
77,908 KB |
testcase_14 | AC | 257 ms
78,288 KB |
testcase_15 | AC | 255 ms
78,516 KB |
testcase_16 | AC | 275 ms
78,556 KB |
testcase_17 | AC | 257 ms
78,088 KB |
testcase_18 | AC | 265 ms
78,516 KB |
testcase_19 | AC | 68 ms
72,320 KB |
testcase_20 | AC | 76 ms
71,808 KB |
testcase_21 | AC | 76 ms
71,680 KB |
testcase_22 | AC | 74 ms
71,936 KB |
testcase_23 | AC | 69 ms
70,912 KB |
testcase_24 | AC | 66 ms
71,296 KB |
testcase_25 | AC | 67 ms
71,936 KB |
testcase_26 | AC | 66 ms
71,168 KB |
testcase_27 | AC | 72 ms
73,856 KB |
testcase_28 | AC | 38 ms
52,864 KB |
testcase_29 | AC | 39 ms
52,352 KB |
testcase_30 | AC | 39 ms
52,480 KB |
testcase_31 | AC | 38 ms
52,480 KB |
testcase_32 | AC | 38 ms
52,224 KB |
testcase_33 | AC | 37 ms
52,736 KB |
testcase_34 | AC | 38 ms
52,480 KB |
testcase_35 | AC | 38 ms
52,608 KB |
testcase_36 | AC | 38 ms
52,096 KB |
testcase_37 | AC | 38 ms
52,608 KB |
testcase_38 | AC | 37 ms
52,608 KB |
ソースコード
import sys # sys.setrecursionlimit(200005) int1 = lambda x: int(x)-1 pDB = lambda *x: print(*x, end="\n", file=sys.stderr) p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr) def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def LI1(): return list(map(int1, sys.stdin.readline().split())) def LLI1(rows_number): return [LI1() for _ in range(rows_number)] def SI(): return sys.stdin.readline().rstrip() dij = [(0, 1), (-1, 0), (0, -1), (1, 0)] # dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)] inf = (1 << 63)-1 # inf = (1 << 31)-1 # md = 10**9+7 md = 998244353 def pf(a): res = [0]*len(prime) for i, p in enumerate(prime): e = 0 while a%p == 0: a //= p e += 1 res[i] = e return res def cnt_fac(cc): res = 1 for c in cc: res *= c+1 return res prime = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31] dd = [None]*32 for a in range(2, 32): dd[a] = pf(a) def solve(): def ok(a): cc = cc0[:] for i, c in enumerate(dd[a]): cc[i] += c return cnt_fac(cc) == s*2 x = II() cc0 = pf(x) s = cnt_fac(cc0) for a in range(2, 32): if ok(a): print(x*a) return for _ in range(II()): solve()