結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
kekure
|
| 提出日時 | 2019-07-06 22:29:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 341 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 57,984 KB |
| 最終ジャッジ日時 | 2024-10-01 13:27:01 |
| 合計ジャッジ時間 | 2,384 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 16 WA * 10 |
ソースコード
import math
N = int(input())
limit = int(math.sqrt(N))
div = []
n = N
i = 2
if (n == 1 or n == 2) :
print('No')
elif (n % 2 == 0) :
print('YES')
else :
for i in range(3, limit + 1, 2) :
if (n % i == 0) :
print('YES')
break
else :
print('NO')
kekure