如下Python代码执行时如输入 10,输出将是 100。
cnt = 0 N = int(input("请输入正整数:")) for i in range(N): for j in range(-i, i): cnt += 1 print(cnt)
正确
错误