用户输出
2
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#3667 | #1009. 完蛋!我被数字包围了 | Wrong Answer | 28 | 18937 ms | 327684 K | Python 3 / 446 B | s230034010 | 2023-11-25 16:12:27 |
N = int(input())
S = input()
res = 0
from itertools import permutations
def permutation1(S, N):
if N and N <= len(S) :
return permutations(S, N)
if not N :
return permutations(S)
if __name__ == '__main__' :
per = list((permutation1(S,N)))
for i in per:
str_list = ''.join(i)
for j in str_list:
root = int(j)**0.5
if root.is_integer():
res+=1
print(res)
用户输出
3
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
3
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
2
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0