Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
20775 | LeoWang | 特殊的数字 | C++ | Accepted | 0 MS | 232 KB | 201 | 2023-06-20 08:24:24 |
#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; }