| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69990 | 杨卓越 | 100~999的水仙花数 | C++ | Accepted | 1 MS | 264 KB | 244 | 2024-04-13 11:09:24 |
#include <bits/stdc++.h> using namespace std; int main (){ int i=100,q,w,e; for(int i=100;i<=999;i++){ q=i%10; w=i/10%10; e=i/10/10%10; if(q*q*q+w*w*w+e*e*e==i){ cout<<i<<' '; } } return 0; }