思路:
1.字符串求子串、转整数;
2.分母上的数不能为0;
代码:
#include<iostream>
#include<string>
using namespace std;
int main(){
int n;
cin>>n;
string s;
for(int i=0;i<n;i++){
cin>>s;
int a=stoi(s.substr(0,s.length()/2));
int b=stoi(s.substr(s.length()/2,s.length()/2));
if(a==0||b==0||stoi(s)%(a*b)) printf("No
");
else printf("Yes
");
}
return 0;
}