結果

問題 No.36 素数が嫌い!
ユーザー ytftytft
提出日時 2022-11-04 21:22:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 210 ms / 5,000 ms
コード長 255 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 75,892 KB
最終ジャッジ日時 2023-09-25 23:32:54
合計ジャッジ時間 5,461 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
75,656 KB
testcase_01 AC 178 ms
75,500 KB
testcase_02 AC 75 ms
71,344 KB
testcase_03 AC 74 ms
71,288 KB
testcase_04 AC 74 ms
71,072 KB
testcase_05 AC 77 ms
75,656 KB
testcase_06 AC 79 ms
75,636 KB
testcase_07 AC 79 ms
75,664 KB
testcase_08 AC 78 ms
75,524 KB
testcase_09 AC 79 ms
75,588 KB
testcase_10 AC 81 ms
75,692 KB
testcase_11 AC 120 ms
75,708 KB
testcase_12 AC 210 ms
75,760 KB
testcase_13 AC 205 ms
75,620 KB
testcase_14 AC 158 ms
75,748 KB
testcase_15 AC 74 ms
71,312 KB
testcase_16 AC 75 ms
71,136 KB
testcase_17 AC 73 ms
70,992 KB
testcase_18 AC 82 ms
75,492 KB
testcase_19 AC 127 ms
75,704 KB
testcase_20 AC 208 ms
75,508 KB
testcase_21 AC 178 ms
75,520 KB
testcase_22 AC 182 ms
75,508 KB
testcase_23 AC 139 ms
75,680 KB
testcase_24 AC 146 ms
75,620 KB
testcase_25 AC 145 ms
75,524 KB
testcase_26 AC 157 ms
75,660 KB
testcase_27 AC 188 ms
75,792 KB
testcase_28 AC 152 ms
75,892 KB
testcase_29 AC 202 ms
75,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
i,ans=1,0
N=int(input())
divs=set()
while i**2<=N:
	if N%i==0:
		divs.add(i)
		divs.add(N//i)
	i+=1
divs=sorted(list(divs))
if N==1 or (len(divs)<=4 and divs[1]**3!=N):
	print('NO')
else:
	print('YES')
0