結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
Justinlam33
|
| 提出日時 | 2017-04-12 23:39:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-10-04 20:23:01 |
| 合計ジャッジ時間 | 4,683 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
import math
n=int(input())
a=int(math.sin(math.pi))
b=(int(math.log(math.e)))
c=int(math.e)
k=True
if (n==b): k=False
else:
for var in range(c,n):
if(n%var==a): k=False
if k:
print('YES')
else:
print('NO')
Justinlam33