結果
問題 |
No.2751 429-like Number
|
ユーザー |
|
提出日時 | 2024-05-10 21:28:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,632 KB |
最終ジャッジ日時 | 2024-12-20 04:21:01 |
合計ジャッジ時間 | 84,091 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 6 |
other | AC * 6 TLE * 16 |
ソースコード
Q=int(input()) def prime_factorize(n): a = [] while n % 2 == 0: n //= 2; a.append(2) f = 3 while f * f <= n: if n % f == 0: n //= f; a.append(f) else: f += 2 if n != 1: a.append(n) return a for _ in range(Q): A=int(input()) f=prime_factorize(A) if len(f)==3:print("Yes") else:print("No")