python
2024-10-12 09:21:14
发布于:浙江
2阅读
0回复
0点赞
string = input()
data = dict()
def zhishupanding(x):
if x < 2:
return False
for i in range(2,x):
if x % i == 0:
return False
return True
for i in string:
if i not in data.keys():
data[i]=1
else:
data[i] += 1
num = max(data.values()) -min(data.values())
if zhishupanding(num):
print('Lucky Word')
print(num,end='')
else:
print('No Answer')
print(0,end='')
这里空空如也
有帮助,赞一个