結果

問題 No.36 素数が嫌い!
ユーザー MintMint
提出日時 2015-05-30 22:50:28
言語 Python2
(2.7.18)
結果
AC  
実行時間 975 ms / 5,000 ms
コード長 195 bytes
コンパイル時間 746 ms
コンパイル使用メモリ 6,680 KB
実行使用メモリ 6,160 KB
最終ジャッジ日時 2023-09-09 07:11:21
合計ジャッジ時間 7,920 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,032 KB
testcase_01 AC 34 ms
6,016 KB
testcase_02 AC 11 ms
6,088 KB
testcase_03 AC 11 ms
6,032 KB
testcase_04 AC 12 ms
6,112 KB
testcase_05 AC 17 ms
6,096 KB
testcase_06 AC 15 ms
6,100 KB
testcase_07 AC 15 ms
6,096 KB
testcase_08 AC 12 ms
6,112 KB
testcase_09 AC 11 ms
6,108 KB
testcase_10 AC 11 ms
6,032 KB
testcase_11 AC 296 ms
6,096 KB
testcase_12 AC 888 ms
6,120 KB
testcase_13 AC 885 ms
6,132 KB
testcase_14 AC 19 ms
6,100 KB
testcase_15 AC 12 ms
6,028 KB
testcase_16 AC 12 ms
6,104 KB
testcase_17 AC 12 ms
6,012 KB
testcase_18 AC 11 ms
6,160 KB
testcase_19 AC 12 ms
6,096 KB
testcase_20 AC 51 ms
6,108 KB
testcase_21 AC 12 ms
6,104 KB
testcase_22 AC 11 ms
6,052 KB
testcase_23 AC 12 ms
6,028 KB
testcase_24 AC 189 ms
6,100 KB
testcase_25 AC 11 ms
6,092 KB
testcase_26 AC 975 ms
6,096 KB
testcase_27 AC 786 ms
6,096 KB
testcase_28 AC 961 ms
6,028 KB
testcase_29 AC 865 ms
6,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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"
0