結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
|
提出日時 | 2016-12-16 17:33:43 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 52 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-30 10:26:34 |
合計ジャッジ時間 | 7,162 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 26 |
ソースコード
n=int(raw_input()) isValid=False d={} c=0 while True: if n%2==1: break c+=1 n/=2 if c>0: d[2]=c i=3 while i**2<=n: c=0 while True: if n%i!=0: break c+=1 n/=i if c>0: d[i]=c i+=2 if n>1: d[n]=1 count = sum(d.values()) print d if count>=3: print "YES" else: print "NO"