13 条题解
- 1
信息
- ID
- 888
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 1318
- 已通过
- 539
- 上传者
#include <iostream>
using namespace std;
int main() {
int chinese, math;
cin >> chinese >> math;
// 判断是否恰好一门不及格
if((chinese < 60 && math >= 60) || (chinese >= 60 && math < 60)) {
cout << 1;
} else {
cout << 0;
}
return 0;
}
这么简单的题,题解师们写不出100ac?
#include
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
if (a < 60 && b >= 60)
{ cout << 1;
}
else if (a >= 60 && b < 60)
{ cout << 1; } else cout << 0; return 0; }
#include using namespace std; int main() { int a,b; cin>>a>>b; if((a<60&&b>=60)||(a>=60&&b<60)){ cout <<1; }else{ cout <<0; } return 0; }