delete pics to save space
This commit is contained in:
16
history_source/ccf 入门篇/U3/3.1.3.cpp
Normal file
16
history_source/ccf 入门篇/U3/3.1.3.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n,a,b,c,m;
|
||||
while(true){
|
||||
cin>>n;
|
||||
a=n/100;
|
||||
b=n/10-a*10;
|
||||
c=n-a*100-b*10;
|
||||
m=a*a*a+b*b*b+c*c*c;
|
||||
if(n==m)cout<<"Yes"<<endl;
|
||||
else cout<<"No"<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user