結果

問題 No.36 素数が嫌い!
ユーザー tookunn_1213tookunn_1213
提出日時 2015-09-05 21:15:37
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 6,524 KB
実行使用メモリ 313,324 KB
最終ジャッジ日時 2023-09-26 09:11:28
合計ジャッジ時間 8,277 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 171 ms
148,108 KB
testcase_01 AC 274 ms
245,152 KB
testcase_02 AC 11 ms
5,924 KB
testcase_03 WA -
testcase_04 AC 11 ms
5,892 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 15 ms
6,648 KB
testcase_08 AC 12 ms
6,208 KB
testcase_09 AC 12 ms
6,516 KB
testcase_10 AC 12 ms
6,460 KB
testcase_11 AC 406 ms
105,792 KB
testcase_12 AC 1,226 ms
313,324 KB
testcase_13 AC 1,207 ms
312,344 KB
testcase_14 AC 229 ms
196,640 KB
testcase_15 AC 11 ms
6,016 KB
testcase_16 AC 11 ms
5,996 KB
testcase_17 AC 11 ms
5,960 KB
testcase_18 AC 11 ms
5,980 KB
testcase_19 AC 149 ms
125,528 KB
testcase_20 AC 346 ms
312,248 KB
testcase_21 AC 276 ms
240,544 KB
testcase_22 AC 283 ms
247,672 KB
testcase_23 AC 175 ms
151,048 KB
testcase_24 AC 194 ms
167,480 KB
testcase_25 AC 190 ms
164,680 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(raw_input())
f = False
L = int(math.ceil(math.sqrt(N)))
for i in range(2,L):
	if N % i == 0:
		f = True
		break
if f:
	print 'YES'
else:
	print 'NO'
0