結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2015-09-05 21:15:37 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 168 bytes |
コンパイル時間 | 591 ms |
コンパイル使用メモリ | 7,200 KB |
実行使用メモリ | 313,676 KB |
最終ジャッジ日時 | 2024-07-19 04:10:44 |
合計ジャッジ時間 | 7,926 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 WA * 7 |
ソースコード
import math N = int(raw_input()) f = False L = int(math.ceil(math.sqrt(N))) for i in range(2,L): if N % i == 0: f = True break if f: print 'YES' else: print 'NO'