Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118127 | 谭哲曦 | 100~999的水仙花数 | C++ | Wrong Answer | 0 MS | 260 KB | 184 | 2025-04-24 18:13:13 |
#include<iostream> using namespace std; int main(){ int s,n; s=0; n=0; while(s<=1000){ n++; s+=n; } cout<<n<<endl; return 0; }
------Input------
0
------Answer-----
153 370 371 407
------Your output-----
45