luyencode / comments

Server lưu trữ bình luận trên Luyện Code
https://luyencode.net
6 stars 3 forks source link

tham khảo nếu khum biết nha #762

Open tiyeume25112004 opened 2 years ago

tiyeume25112004 commented 2 years ago

a=int(input()) S=0 if a<0 and a>10**9: print("NO") else: for i in range(1,a): if a%i==0: S+=i if S==a: print("YES") else: print("NO")