Ohhhh!
2025-05-31 19:27:41
发布于:广东
#include<bits/stdc++.h>
using namespace std;
int main(){
int m=0;
cin>>m;
for(int i=0;i<m;i++){
int n,t,l=0;
cin>>n;
t=n;
while(t>0){
t/=10;
l++;
}
int sum=0;
t=n;
while(t>0){
int d=t%10;
t/=10;
int mul=1;
for(int j=0;j<l;j++){
mul*=d;
}
sum+=mul;
}
if(sum==n) cout<<"T";
else cout<<"F";
}
}
这里空空如也
有帮助,赞一个