Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146918 王晏林 100~999的水仙花数 C++ Accepted 0 MS 264 KB 233 2026-02-01 12:06:24

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