結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
|
提出日時 | 2016-10-27 14:19:27 |
言語 | PyPy2 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 364 ms |
コンパイル使用メモリ | 77,056 KB |
実行使用メモリ | 76,928 KB |
最終ジャッジ日時 | 2024-11-24 04:55:11 |
合計ジャッジ時間 | 5,336 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 4 WA * 22 |
ソースコード
import math N = input() rootN = int(math.sqrt(N)) i = 2 c = 0 while i <= rootN: while N % i == 0: N /= i c += 1 print i if c > 2: print 'YES' exit() i += 1 if c == 2 and N > 1: print 'YES' else: print 'NO'