根据题意,可以直接
a = n/100;
b = n/10%10;
c = n%10;
然后根据题面,if判断输出TRUE还是FALSE
CODE:
#include<bits/stdc++.h>
using namespace std;
int main(){
int a, b ,c , n;
cin >> n;
a = n/100;
b = n/10%10;
c = n%10;
if(a*a*a + b*b*b + c*c*c == n){
cout << "TRUE";
} else {
cout << "FALSE";
}
return 0;
}