1 solutions

  • 0
    @ 2023-9-30 14:09:57
    #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
    5
    Tags
    (None)
    # Submissions
    158
    Accepted
    60
    Uploaded By