結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
|
提出日時 | 2018-03-19 18:55:03 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 399 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 115,624 KB |
最終ジャッジ日時 | 2025-01-03 00:55:16 |
合計ジャッジ時間 | 85,217 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 1 TLE * 14 |
ソースコード
#!/usr/bin/env python N = int(input()) if 1 <= N <= 3: print('NO') quit() ans = 0 tmp = N while tmp % 2 == 0: ans += 1 if ans >= 2: print('YES') quit() tmp = tmp / 2 for i in range(3, N, 2): if ans >= 3: print('YES') quit() elif N % i == 0: ans += 1 if ans >= 3: print('YES') else: print('NO')