Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
73590 jdf25_wumingyang 水仙花数 C++ 通过 0 MS 252 KB 455 2025-11-12 17:26:52

Tests(1/1):


#include <iostream> int main() { for (int num = 100; num <= 999; num++) { int hundreds = num / 100; int tens = (num / 10) % 10; int units = num % 10; int sum = hundreds * hundreds * hundreds + tens * tens * tens + units * units * units; if (sum == num) { std::cout << num << std::endl; } } return 0; }


测评信息: