#include<stdio.h> #include<math.h> int main() { int x; scanf("%d",&x); int a,b,c; a=x/100; b=x/10%10; c=x%100%10; if(x==pow(a,3)+pow(b,3)+pow(c,3)) { printf("TRUE"); } else if(x!=pow(a,3)+pow(b,3)+pow(c,3)) printf("FALSE"); return 0; }
注册一个 南阳理工学院OJ 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 南阳理工学院OJ 通用账户