結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
71,904 KB
testcase_01 AC 88 ms
72,220 KB
testcase_02 AC 86 ms
72,132 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 94 ms
76,856 KB
testcase_08 AC 90 ms
72,044 KB
testcase_09 AC 89 ms
71,796 KB
testcase_10 AC 89 ms
71,904 KB
testcase_11 AC 138 ms
77,040 KB
testcase_12 AC 227 ms
76,764 KB
testcase_13 WA -
testcase_14 AC 96 ms
76,892 KB
testcase_15 AC 89 ms
72,392 KB
testcase_16 AC 89 ms
72,040 KB
testcase_17 AC 88 ms
71,784 KB
testcase_18 AC 87 ms
72,216 KB
testcase_19 AC 89 ms
71,948 KB
testcase_20 AC 89 ms
72,112 KB
testcase_21 AC 89 ms
72,092 KB
testcase_22 AC 90 ms
72,196 KB
testcase_23 AC 89 ms
72,056 KB
testcase_24 AC 89 ms
71,948 KB
testcase_25 AC 89 ms
72,160 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 + 1, N)):
		if N % i == 0:
			print("YES")
			return

	print("NO")


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