結果
問題 |
No.2751 429-like Number
|
ユーザー |
👑 |
提出日時 | 2024-05-09 10:43:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,709 ms / 4,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 455 ms |
コンパイル使用メモリ | 82,496 KB |
実行使用メモリ | 77,896 KB |
最終ジャッジ日時 | 2024-12-20 04:10:06 |
合計ジャッジ時間 | 37,137 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 6 |
other | AC * 22 |
ソースコード
I,R=input,range L=10**5 P=[] C=[0]*L for i in R(2,L): if C[i]<1: P+=[i];j=i*i while j<L:C[j],j=1,j+i for q in R(int(I())): N=int(I());a=0 for p in P: while N%p<1:N//=p;a+=1 print("YNeos"[a+(N>1)!=3::2])