結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2020-09-05 23:21:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 194 ms / 5,000 ms |
コード長 | 155 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 82,236 KB |
実行使用メモリ | 59,280 KB |
最終ジャッジ日時 | 2024-11-29 06:18:52 |
合計ジャッジ時間 | 6,746 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
n = int(input()) cnt = 0 for p in range(2, 10 ** 7): while n % p == 0: n //= p cnt += 1 cnt += n > 1 print('YES' if cnt >= 3 else 'NO')