编码不易 , 求赞
#include <bits/stdc++.h>
using namespace std;
int n , x;
int main()
{
cin >> n;
while (n--)
{
cin >> x;
if (x == 6 ||
x == 28 ||
x == 496 ||
x == 8128 ||
x == 130816 ||
x == 2096128 ||
x == 33550336 ||
x == 536854528 ||
x == 8589869056)
{
cout << x << " is perfect" << endl;
}
else
{
cout << x << " is not perfect" << endl;
}
}
return 0;
}