Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118641 谭哲曦 100~999的水仙花数 C++ Accepted 0 MS 264 KB 307 2025-05-08 23:34:39

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ int ge,shi,bai,i; for(i=100;i<1000;i++){ bai=i/100; shi=(i/10)%10; ge=i%10; if(bai*bai*bai+shi*shi*shi+ge*ge*ge==i) cout<<i<<" "; } return 0; }