已解决 徐烨奎 新手光能 #include<iostream> #include<cstdio> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>50&&b<50){ cout<<"1"<<" "; } else if(a<=50||b>=50){ cout<<"0"<<" "; } if(a<b||a<b&&b>50){ cout<<"1"; } else if(!(a<b)&&b<50){ cout<<"0"; } return 0; } 不要给别人的贴
已采纳 张韬 资深守护 bool n,i; int a,b; 输入>>a>>b; n=a>50&&b<50; i=a<50||a>=b&&b>50; 输出<<n<<" "<<i; 别忘了文件头 #include <iostream> #include <cstdio>