public static void main(String[] args) {
        System.out.println(judge(new int[]{1,3},new int[]{2,5}));
        System.out.println(judge(new int[]{1,3},new int[]{4,5}));
        System.out.println(judge(new int[]{3,5},new int[]{4,8}));
    }


    public static boolean judge(int[] A, int[] B) {
        return Math.max(A[0],B[0])<=Math.min(A[1],B[1]);
    }

 

posted on 2023-02-16 17:03  小胡桐  阅读(214)  评论(0编辑  收藏  举报