AC狗写的ovo
2025-07-19 16:18:44
发布于:广东
0阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int hundreds = n / 100;
int tens = (n / 10) % 10;
int units = n % 10;
int sum = hundreds * hundreds * hundreds +
tens * tens * tens +
units * units * units;
if (sum == n) {
cout << "YES";
} else {
cout << "NO";
}
return 0;
}
这里空空如也
有帮助,赞一个