3 条题解

  • 4
    @ 2023-2-11 20:44:15
    N = int(input(""))
    numlist = []
    for i in range(1,N+1):
        numlist.append(str(i**2))
    N = ",".join(numlist)
    print(N)
    
    • 2
      @ 2023-3-19 15:32:45
      N = int(input(""))
      numlist = []
      for i in range(1,N+1):
          numlist.append(str(i**2))
      N = ",".join(numlist)
      print(N)
      
      • -2
        @ 2023-1-7 14:24:08
        N = int(input())
        numlist = []
        for i in range(1,N+1):
            numlist.append(str(i**2)) # i*i 或者i**2
        print(",".join(numlist)) # join()缝合要保证列表每个元素都是文字类型
        
        • 1

        信息

        ID
        1567
        时间
        1000ms
        内存
        128MiB
        难度
        6
        标签
        递交数
        24
        已通过
        11
        上传者