結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-13 07:44:00 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 13,092 KB |
| 最終ジャッジ日時 | 2024-10-04 07:08:21 |
| 合計ジャッジ時間 | 6,472 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | AC * 1 TLE * 1 -- * 24 |
ソースコード
l=lambda:map(int,raw_input().split()) def isprime(n): if n==2:return True if n<2 or n&1==0:return False for i in xrange(3,int(n**0.5)+2,2): if n%i==0: return False return True n=l()[0] if n%2==0: print"YES" exit() for i in xrange(2,n): if isprime(i): continue if n%i==0: print"YES" break else: print"NO"
taba