7 条题解

  • 0
    @ 2025-4-14 15:08:43
    a=list(map(int,input().split()))
    test1=0
    for i in a:
        for p in range(1,i):
            if i%p==0:
                test1+=p
        if i==test1 and i!=2:
            if i==a[len(a)-1]:
                print(1)
            else:
                print(1,end=" ")
        else:
            if i==a[len(a)-1]:
                print(0)
            else:
                print(0,end=" ")
        test1=0
    

    信息

    ID
    66
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    796
    已通过
    293
    上传者