1132 Cut Integer

#include<iostream>

using namespace std;

int main(){

int n,num;

cin>>n;

for(int i=0;i<n;i++){

cin>>num;

string s=to_string(num);

int len=s.length();

int a=stoi(s.substr(0,len/2));

int b=stoi(s.substr(len/2));

if(a*b!=0&&num%(a*b)==0){

cout<<"Yes"<<endl;

}else{

cout<<"No"<<endl;

}

}

return 0;

}

相关推荐
aini_lovee2 小时前
基于边缘图像分割算法详解与MATLAB实现
开发语言·算法·matlab
Mr_WangAndy2 小时前
C++数据结构与算法_数据结构与算法概念_时间复杂度
c++·c++数据结构与算法·时间复杂度分析
拼好饭和她皆失2 小时前
高效算法的秘诀:滑动窗口(尺取法)全解析
数据结构·算法·滑动窗口·尺取法
小满、2 小时前
Redis:数据结构与基础操作(String、List、Hash、Set、Sorted Set)
java·数据结构·redis·分布式锁
断剑zou天涯3 小时前
【算法笔记】二叉树的Morris遍历
数据结构·笔记·算法
元亓亓亓3 小时前
LeetCode热题100--739. 每日温度--中等
python·算法·leetcode
小白程序员成长日记3 小时前
2025.12.11 力扣每日一题
数据结构·算法·leetcode
一碗白开水一3 小时前
【论文阅读】Denoising Diffusion Probabilistic Models (DDPM)详细解析及公式推导
论文阅读·人工智能·深度学习·算法·机器学习
代码游侠3 小时前
学习笔记——进程
linux·运维·笔记·学习·算法