結果
| 問題 |
No.2751 429-like Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-10 21:30:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 313 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 82,296 KB |
| 実行使用メモリ | 83,892 KB |
| 最終ジャッジ日時 | 2024-12-20 04:24:09 |
| 合計ジャッジ時間 | 22,540 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 21 TLE * 1 |
ソースコード
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")