用户输出
Yes
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#3586 | #1007. 这你也敢信? | Wrong Answer | 61 | 3604 ms | 2896 K | Python 3 / 590 B | t330034013 | 2023-11-25 15:51:05 |
import math
def res(k, x):
if k % x == 0:
k = k / x
return res(k, x)
else:
return k
def isprime(num):
num = math.ceil(num**0.5)
for i in range(2, num):
if num % i == 0:
num = res(num, i)
isprime(num)
if num == 1:
return False
return True
n = int(input())
n2 = res(n, 2)
n3 = res(n2, 3)
judge = True
for i in range(4, math.ceil(n3 ** 0.5)):
if n % i == 0:
if isprime(i):
judge = False
break
if judge:
print('Yes')
用户输出
Yes
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0
用户输出
Yes
系统信息
Exited with return code 0