5 条题解
-
2240714zj张逸凡 (张逸fan) LV 8 @ 2024-07-19 07:59:57
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
long long a,b,c,z;
cin>>z;
a=z/100;
b=z/10%10;
c=z%10;
if (pow(a,3)+pow(b,3)+pow(c,3)==z)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
} -
12024-07-07 10:20:37@
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,a,b,c;
cin>>n;
a=n/100;
b=n/10-a*10;
c=n%10;
if(pow(a,3)+pow(b,3)+pow(c,3)==n)
cout<<"YES";
else
cout<<"NO";
return 0;
}
//nice -
-22022-06-13 09:36:04@
#include <bits/stdc++.h>
using namespace std;
int main()
{
int m,a,b,c;
cin>>m;
a=m/100;
b=m/10-a*10;
c=m%10;
if(m==a*a*a+b*b*b+c*c*c)
cout<<"YES";
else
cout<<"NO";
return 0;
} -
-42021-11-05 13:34:13@
#include<iostream>
using namespace std;
int main()
{
int m,a,b,c;
cin>>m;
a=m/100;
b=m/10-a*10;
c=m%10;
if(m==a*a*a+b*b*b+c*c*c)
cout<<"YES";
else
cout<<"NO";
return 0;
}
随便借鉴 -
-42021-11-01 16:02:19@
#include<iostream>
using namespace std;
int main()
{
int m,a,b,c;
cin>>m;
a=m/100;
b=m/10-a*10;
c=m%10;
if(m==a*a*a+b*b*b+c*c*c)
cout<<"";
else
cout<<"";
return 0;
}
one piece
- 1
信息
- ID
- 1039
- 难度
- 4
- 分类
- (无)
- 标签
- 递交数
- 366
- 已通过
- 144
- 通过率
- 39%
- 上传者