Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114463 | 刘明沅 | 100~999的水仙花数 | C++ | Wrong Answer | 0 MS | 256 KB | 211 | 2025-03-22 13:04:07 |
#include<bits/stdc++.h> using namespace std; int main() { for(int i=100;i<=999;i++){ int ge,shi,bai; int snm=ge*ge*ge+shi*shi*shi+bai*bai*bai; if(i==snm){ cout<<i<<" "; } } return 0; }
------Input------
0
------Answer-----
153 370 371 407
------Your output-----