1 solutions
-
0
#include <stdio.h> int main() { int score_chinese, score_math; // 输入语文和数学成绩 scanf("%d", &score_chinese); scanf("%d", &score_math); // 判断是否有一门课不及格 if ((score_chinese < 60 && score_math >= 60) || (score_chinese >= 60 && score_math < 60)) { printf("1\n"); // 有一门课不及格 } else { printf("0\n"); // 没有一门课不及格 } return 0; }
Information
- ID
- 6743
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 6
- Tags
- (None)
- # Submissions
- 262
- Accepted
- 86
- Uploaded By