真实有效
2024-01-21 16:36:28
发布于:广东
19阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int ikun,t,x,y;
	cin>>x>>y;
	t=(y-2*x)/2;
	ikun=x-t;
	if(t<0 or ikun<0)
	{
		cout<<"No";
		return 0;
	 } 
	if(ikun*2 + t*4 == y) cout<<"Yes";
	else cout<<"No";
	return 0;
        while(true)
}
这里空空如也



有帮助,赞一个