#include<bits/stdc++.h>
using namespace std;
bool jingzhe(long long n){
long long x,t;
x=n;
while(x){
if(x%4==0)
return 1;
x/=10;
}
x=n;
t=x%10;
x/=100;
while(x){
long long m=x*10+t;
if(m%4==0)
return 1;
x/=10;
}
if(t%4==0)
return 1;
return 0;
}
int main(){
long long t,n;
cin>>t;
while(t--){
cin>>n;
if(jingzhe(n))
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
return 0;
}
惊蛰(暴力枚举写法)正解
最新推荐文章于 2024-09-08 21:26:22 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)