Note: solution.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
MacBook-Pro:code loujunjie$ java solution
current firstEnd 30
creating a new room: 5,10;
current firstEnd 10
current firstEnd 35
creating a new room: 32,40;
5,10;15,35;
0,30;
32,40;
请问这题有什么简便的办法解么?谢谢!
import java.util.*;
public class solution {
public static void main(String[] args){
solution programm = new solution();
Inter