有一门课不及格的学生
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【题目描述】
给出一名学生的语文和数学成绩,判断他是否恰好有一门课不及格(成绩小于60分)。若该生恰好有一门课不及格,输出1;否则输出0。
【输入】
一行,包含两个在0到100之间的整数,分别是该生的语文成绩和数学成绩。
【输出】
若该生恰好有一门课不及格,输出1;否则输出0。
【输入样例】
50 80
【输出样例】
1
【提示】
尝试并理解 ^
异或运算符
B班第三天测试
- Status
- Done
- Rule
- Ledo
- Problem
- 12
- Start at
- 2025-7-22 19:00
- End at
- 2025-7-22 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 6