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

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; }


测评信息: