結果
| 問題 | No.2751 429-like Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-28 13:19:19 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 3,072 ms / 4,000 ms |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 82,176 KB |
| 最終ジャッジ日時 | 2026-05-27 17:06:30 |
| 合計ジャッジ時間 | 38,278 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 22 |
ソースコード
def prime_factors(N):
res = []
for i in range(2, int(N ** 0.5) + 1):
while N % i == 0:
res.append(i)
N //= i
if N != 1: res.append(N)
return res
Q = int(input())
for _ in range(Q):
A = int(input())
pf = prime_factors(A)
if len(pf) == 3:
print("Yes")
else:
print("No")