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