結果
| 問題 | No.2751 429-like Number |
| ユーザー |
|
| 提出日時 | 2024-05-13 00:20:27 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2,288 ms / 4,000 ms |
| + 330µs | |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 64,384 KB |
| 実行使用メモリ | 60,800 KB |
| 最終ジャッジ日時 | 2026-10-20 23:24:34 |
| 合計ジャッジ時間 | 21,553 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 23 |
ソースコード
import math
Q=int(input())
def isOk(x):
count=0
for i in range(2, math.floor(math.sqrt(x))+9):
while x%i==0:
x//=i
count+=1
if count>3: return 0
if x!=1: count+=1
return [0, 1][count==3]
for _ in range(Q):
print(["No", "Yes"][isOk(int(input()))])