嗨嗨嗨
2023-03-18 10:11:46
发布于:北京
201阅读
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;
}
全部评论 1
-_- ,想知道AC了没,编译错误: /code/judger/test/1752673861272969216/main11.cpp: In function 'int main()':
/code/judger/test/1752673861272969216/main11.cpp:6:8: error: 'a2' was not declared in this scope
tu+=(b-2024-01-31 来自 浙江
0'a2' was not declared in this scope
tu+=(b-a2)/2;2024-01-31 来自 浙江
0
有帮助,赞一个