結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-13 07:41:21 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 292 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 7,076 KB |
| 実行使用メモリ | 13,348 KB |
| 最終ジャッジ日時 | 2024-10-04 07:07:58 |
| 合計ジャッジ時間 | 6,470 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] for i in xrange(2,n): if isprime(i): continue if n%i==0: print"YES" break else: print"NO"
taba