結果

問題 No.36 素数が嫌い!
ユーザー 双六双六
提出日時 2020-07-22 10:05:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 433 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 76,996 KB
最終ジャッジ日時 2023-09-01 03:46:04
合計ジャッジ時間 4,968 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,800 KB
testcase_01 AC 91 ms
71,956 KB
testcase_02 AC 91 ms
72,304 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 94 ms
76,900 KB
testcase_08 AC 88 ms
72,148 KB
testcase_09 AC 89 ms
71,872 KB
testcase_10 AC 88 ms
72,020 KB
testcase_11 AC 136 ms
76,972 KB
testcase_12 AC 230 ms
76,852 KB
testcase_13 WA -
testcase_14 AC 93 ms
76,688 KB
testcase_15 AC 87 ms
72,132 KB
testcase_16 AC 88 ms
72,124 KB
testcase_17 AC 87 ms
71,616 KB
testcase_18 AC 88 ms
71,808 KB
testcase_19 AC 90 ms
72,132 KB
testcase_20 AC 89 ms
72,032 KB
testcase_21 AC 89 ms
72,180 KB
testcase_22 AC 87 ms
71,804 KB
testcase_23 AC 87 ms
72,212 KB
testcase_24 AC 89 ms
72,136 KB
testcase_25 AC 90 ms
71,820 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N = int(input())
	if N == 1:
		print("NO")
		return

	n = int(N ** 0.5)
	for i in range(2, min(n + 2, N)):
		if N % i == 0:
			print("YES")
			return

	print("NO")


if __name__ == '__main__':
	main()
0