結果

問題 No.36 素数が嫌い!
ユーザー MintMint
提出日時 2015-05-30 22:44:36
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 6,636 KB
実行使用メモリ 6,172 KB
最終ジャッジ日時 2023-09-20 17:52:16
合計ジャッジ時間 8,533 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,116 KB
testcase_01 AC 34 ms
6,136 KB
testcase_02 AC 11 ms
6,136 KB
testcase_03 AC 12 ms
6,088 KB
testcase_04 AC 11 ms
5,996 KB
testcase_05 AC 17 ms
6,096 KB
testcase_06 AC 15 ms
6,048 KB
testcase_07 AC 15 ms
6,132 KB
testcase_08 AC 11 ms
6,136 KB
testcase_09 AC 12 ms
6,096 KB
testcase_10 AC 12 ms
6,100 KB
testcase_11 AC 298 ms
6,064 KB
testcase_12 AC 888 ms
5,992 KB
testcase_13 AC 886 ms
6,128 KB
testcase_14 WA -
testcase_15 AC 12 ms
6,172 KB
testcase_16 AC 12 ms
6,140 KB
testcase_17 AC 11 ms
6,008 KB
testcase_18 AC 11 ms
6,084 KB
testcase_19 AC 11 ms
6,064 KB
testcase_20 AC 51 ms
6,080 KB
testcase_21 AC 11 ms
6,044 KB
testcase_22 AC 12 ms
6,096 KB
testcase_23 AC 11 ms
6,080 KB
testcase_24 AC 189 ms
6,080 KB
testcase_25 AC 12 ms
6,084 KB
testcase_26 AC 974 ms
6,064 KB
testcase_27 AC 788 ms
5,996 KB
testcase_28 AC 957 ms
6,040 KB
testcase_29 AC 866 ms
6,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = input()

for i in xrange(2, (int)(math.sqrt(n))):
	if n % i == 0:
		for j in xrange(2,(int)(math.sqrt(n/i))):
			if (n/i) % j == 0:
				print "YES"
				exit()
print "NO"
0