返回小组 开始 2026-06-12 00:00:00

云附小测3

结束 2026-06-24 00:00:00
Contest is over.
当前 2026-08-12 17:22:04

acE
#include <iostream>
using namespace std;

int main() {
	int n, r = 0;
	cin >> n;
	int nb = n;

	while (n != 0) {
		int x = n % 10;
		r += x * x * x;
		n /= 10;
	}

	if (r == nb) {
		cout << "YES";
	} else {
		cout << "NO";
	}
}

yanghaolin  •  1个月前

比赛已结束。