#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 通用賬戶