ppz • 1天前
using namespace std;
int main() {
int n; cin >> n; int sum = 0, x = n; while (n) { int a = n % 10; n /= 10; sum += a * a * a; } if (sum == x) { cout << "YES"; } else { cout << "NO"; } return 0;
}
评论:
请先登录,才能进行评论