0分求救
查看原帖
0分求救
1323415
wky_wsy_楼主2024/7/12 22:44

不知道为啥又双叒叕0分

#include <bits/stdc++.h>
using namespace std;
char s[10000000]=" ";
int main(){
    int a;
    long long c=0,lin;
    cin>>a;
    for(int i=0;i<a;i++){
        cin>>s;
        int l=strlen(s);
        for(int j=0;j<l;j++){
            c+=pow(int(s[j]),2);
            lin=stoi(s);
            if(c==lin) printf("T\n");
            else printf("F\n");
            c=0;
        }
    }
    return 0;
}
2024/7/12 22:44
加载中...