蒙的看这边!!!
2024-09-22 21:17:08
发布于:广东
19阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
    bool p=0;
    int ji,tu,x,y;
    cin>>x>>y;
    for(ji=1;ji<x;ji++){
        for(tu=1;tu<x;tu++){
            if(ji+tu==x&&ji*2+tu*4==y){
                p=1;
            }
        }
    }
    if(p) cout<<"Yes";
    else cout<<"No";
}
这里空空如也

有帮助,赞一个