Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
3327 | liumingxuan | 特殊的数字 | C++ | Accepted | 0 MS | 244 KB | 197 | 2023-01-01 15:14:15 |
#include<iostream> using namespace std; int main(){ for(int i=100;i<=999;i++){ int a=i/100,b=i/10%10,c=i%10; if(a*a*a+b*b*b+c*c*c==i)cout<<i<<'\n'; } return 0; }