acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 题解

    #include <bits/stdc++.h> using namespace std; int main(){ int ji=0,tu=0,a,b; cin >> a >> b; tu+=(b-a2)/2; ji+=a-tu; if(ji<0 || tu<0){ cout << "No"; return 0; } if(ji2+tu*4==b ){ cout << "Yes"; }else{ cout << "No" ; } return 0; }

    userId_undefined

    还没想好

    出道萌新贪心·贪心尝试者倔强青铜
    0阅读
    0回复
    0点赞
  • 我这个必须有效如果无效我就是**

    #include <bits/stdc++.h> using namespace std; typedef long long ll; ll j,t; ll x,y; int main() { cin>>x>>y; t=(y-2x)/2; j=x-t; if(t<0 or j<0){ cout<<"No"; return 0; } if(j2+t*4==y) cout<<"Yes"; else cout<<"No"; return 0; }

    userId_undefined

    黄厚泽(最强和平管理者)C++

    0阅读
    0回复
    0点赞

共42条

  • 1
  • 2
  • 3
20条/页
跳至页
首页