Information
- ID
- 846
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 10
- Tags
- (None)
- # Submissions
- 7
- Accepted
- 4
- Uploaded By
C++ :
#include<bits/stdc++.h>
using namespace std;
long long a;
int main()
{
for(int s=100;s<=999;s++)
{
if(s==int(pow(s%10,3)+pow(s/10%10,3)+pow(s/100,3)))cout<<s<<endl;
}
}
其实输出153\n370\n371\n407\n就行了(要加双引号)
By signing up a 大沥中心 universal account, you can submit code and join discussions in all online judging services provided by us.