#include <iostream> using namespace std; int main() { int n = 0; cin >> n; int t = n; int sum = 0; while(n > 0) { sum += (n % 10) * (n % 10) * (n % 10); n /= 10; } if(sum == t) cout << "TRUE" << endl; else cout << "FALSE" << endl; return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account