You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
241 B

2 years ago
#include <iostream>
using namespace std;
int main() {
int num = 0,a,b,c;
cin>>num;
a=num%10;//<2F><>λ
b=num/10%10;//ʮλ
c=num/100;//<2F><>λ
if(a*a*a+b*b*b+c*c*c==num) {
cout<<num<<"<EFBFBD><EFBFBD>ˮ<EFBFBD>ɻ<EFBFBD><EFBFBD><EFBFBD>";
} else {
cout<<num<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD>ɻ<EFBFBD><EFBFBD><EFBFBD>";
}
}