-
个人简介
#include ##include #include using namespace std; int main(){ int m,b; cin>>m; int a[m]; for(int i=0; i<m; i++){ cin>>a[i]; } for(int i=0; i<m; i++){ string a_str = to_string(a[i]); b = a_str.length(); int a_t[b+1]; for(int j=1; j<=b; j++){ int zheng = pow(10, j-1); a_t[j] = a[i]/zheng%10; } int result=0; for(int j=1; j<=b; j++){ result += pow(a_t[j],b); } if(result==a[i]){ cout<<"T"<<endl; }else{ cout<<"F"<<endl; } } }
-
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework.
题目标签
- 初窥门径
- 9
- 顺序结构
- 9