結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-30 22:50:28 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 1,018 ms / 5,000 ms |
| コード長 | 195 bytes |
| コンパイル時間 | 302 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 00:19:55 |
| 合計ジャッジ時間 | 7,634 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
import math n = input() for i in xrange(2, (int)(math.sqrt(n)) + 1): if n % i == 0: for j in xrange(2,(int)(math.sqrt(n/i)) + 1): if (n/i) % j == 0: print "YES" exit() print "NO"