5 solutions

  • 1
    @ 2025-7-2 14:46:53
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int xx;
    	cin>>xx;
    	if(xx==6||xx==28||xx==496||xx==8128||xx==33550336)
    	{
    		cout<<"YES";
    	}
    	else
    	{
    		cout<<"NO";
    	}
    	
    
    	return 0;
    }
    
    • 0
      @ 2024-9-22 13:50:05
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	int n;
      	cin>>n;
      	int s=1;
      	for(int i=2;i<=sqrt(n);i++)
      	{
      		if(n%i==0)
      		{
      			s+=i;
      			{
      				if(n/i!=i)
      				{
      					s+=n/i; 
      				}
      			}
      		}
      	}
      	if(n==s) cout<<"YES";
      	else cout<<"NO";
      	return 0;
      }
      
      
      
      • -6
        @ 2024-9-8 11:00:38

        sha bi

        • -6
          @ 2024-7-4 11:18:02

          zsdsfkeiohoitq24ioerjhop

          • -6
            @ 2024-4-10 20:16:32

            别看了自己写;

          • 1

          Information

          ID
          31
          Time
          1000ms
          Memory
          256MiB
          Difficulty
          3
          Tags
          (None)
          # Submissions
          265
          Accepted
          59
          Uploaded By