結果

問題 No.36 素数が嫌い!
ユーザー ytftytft
提出日時 2022-11-04 21:20:30
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 243 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 86,440 KB
実行使用メモリ 78,728 KB
最終ジャッジ日時 2023-09-25 23:31:24
合計ジャッジ時間 5,545 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
75,488 KB
testcase_01 AC 177 ms
75,420 KB
testcase_02 AC 71 ms
71,036 KB
testcase_03 AC 70 ms
71,044 KB
testcase_04 AC 70 ms
71,172 KB
testcase_05 AC 76 ms
75,184 KB
testcase_06 AC 73 ms
75,716 KB
testcase_07 AC 75 ms
75,508 KB
testcase_08 AC 74 ms
75,360 KB
testcase_09 AC 72 ms
75,468 KB
testcase_10 AC 71 ms
75,392 KB
testcase_11 AC 113 ms
75,468 KB
testcase_12 AC 199 ms
75,472 KB
testcase_13 AC 199 ms
75,420 KB
testcase_14 AC 152 ms
75,476 KB
testcase_15 AC 69 ms
71,092 KB
testcase_16 AC 67 ms
71,108 KB
testcase_17 RE -
testcase_18 AC 70 ms
75,484 KB
testcase_19 AC 122 ms
75,720 KB
testcase_20 AC 199 ms
75,532 KB
testcase_21 AC 173 ms
75,688 KB
testcase_22 AC 174 ms
75,436 KB
testcase_23 AC 129 ms
75,416 KB
testcase_24 AC 141 ms
75,460 KB
testcase_25 AC 137 ms
75,656 KB
testcase_26 AC 149 ms
75,472 KB
testcase_27 AC 183 ms
75,472 KB
testcase_28 AC 152 ms
75,472 KB
testcase_29 AC 195 ms
75,220 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 len(divs)>4 or divs[1]**3==N:
	print('YES')
else:
	print('NO')
0