标签:
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int k=1,data=0; while(a>k){ if(a%k==0) data+=k; k++; } if(data==a){ System.out.println("yes"); } else System.out.println("no"); } }
标签:
原文地址:http://www.cnblogs.com/watchfree/p/5346942.html