A305.有一门课不及格的学生题解:
2026-02-09 09:28:24
发布于:四川
0阅读
0回复
0点赞
A305.有一门课不及格的学生
注意只有一门不及格!条件为if(a<60 && b>=60 || b<60 && a>=60)
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
if(a<60 && b>=60 || b<60 && a>=60){
cout << 1;
}else cout << 0;
return 0;
}
这里空空如也






有帮助,赞一个