救 救 蒟 蒻 吧
查看原帖
救 救 蒟 蒻 吧
1286347
jiggy_boogy楼主2025/7/31 18:48
#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,tn[10001]; 
	long long temp,tot,t,wei=0,ttt=0;
	cin>>n;
	for(int i=0;i<n;i++){
		ttt=0;
		cin>>tn[i];
		while(tn[i]){
			tn[i]/=10;
			wei++;
		}
		for(int j=1;j<=wei;j++){
			while(j%2!=0){
				tn[j]*=7;
				if(tn[j]<=9){
					tot+=tn[j];
					ttt++;
					break;
				}
				else{
					tn[j]=tn[j]%10+tn[j]/10;
				}
			}
		}
		if(tn[i]%8==0){
			cout<<"T"<<endl;
		}
		else{
			cout<<"F"<<endl;
		}
	}
}
2025/7/31 18:48
加载中...