闵昊岚


私信TA

用户名:dotcpp0695436

访问量:794

签 名:

摆烂持续中........................................()

等  级
排  名 1788
经  验 2583
参赛次数 13
文章发表 11
年  龄 18
在职情况 学生
学  校 中山职业技术学院
专  业 23大数据班

  自我简介:

TA的其他文章

解题思路:

注意事项:

参考代码:import java.util.Scanner;

public class Main {
   public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int chineseScore = scanner.nextInt();
       int mathScore = scanner.nextInt();
       
       if (chineseScore < 60 && mathScore >= 60) {
           System.out.println(1);
       } else if (chineseScore >= 60 && mathScore < 60) {
           System.out.println(1);
       } else {
           System.out.println(0);
       }
   }
}

 

0.0分

2 人评分

  评论区