13 条题解
- 1
信息
- ID
- 888
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 1350
- 已通过
- 554
- 上传者
#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;
}
 liziyang
      
  
 @ 2025-5-24 20:04:29
    
          liziyang
      
  
 @ 2025-5-24 20:04:29
                这么简单的题,题解师们写不出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; }