結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 11 ms
6,160 KB
testcase_03 AC 11 ms
6,104 KB
testcase_04 AC 11 ms
6,092 KB
testcase_05 AC 17 ms
6,092 KB
testcase_06 AC 15 ms
6,092 KB
testcase_07 AC 14 ms
6,092 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 297 ms
6,160 KB
testcase_12 AC 888 ms
6,152 KB
testcase_13 AC 888 ms
6,156 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 12 ms
6,096 KB
testcase_17 AC 12 ms
6,020 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 983 ms
6,092 KB
testcase_27 AC 785 ms
6,112 KB
testcase_28 AC 961 ms
6,096 KB
testcase_29 AC 869 ms
6,156 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 j % (n/i) == 0:
				print "YES"
				exit()
print "NO"
0