@@ -0,0 +1,2687 @@
+import java.util.*;%0A%0Aclass Player %7B%0A%0A    public static void main(String args%5B%5D) %7B%0A        Scanner in = new Scanner(System.in);%0A        int nbFloors = in.nextInt(); // number of floors%0A        int width = in.nextInt(); // width of the area%0A        //System.err.println(width);%0A        int nbRounds = in.nextInt(); // maximum number of rounds%0A        int exitFloor = in.nextInt(); // floor on which the exit is found%0A        int exitPos = in.nextInt(); // position of the exit on its floor%0A        int nbTotalClones = in.nextInt(); // number of generated clones%0A        int nbAdditionalElevators = in.nextInt(); // ignore (always zero)%0A        int nbElevators = in.nextInt(); // number of elevators%0A        int%5B%5D elevs = new int%5BnbFloors%5D;%0A        for (int i = 0; i %3C nbElevators; i++) %7B%0A            int elevatorFloor = in.nextInt(); // floor on which this elevator is found%0A            int elevatorPos = in.nextInt(); // position of the elevator on its floor%0A            elevs%5BelevatorFloor%5D=elevatorPos;%0A         %7D%0A%0A        // game loop%0A        while (true) %7B%0A            int cloneFloor = in.nextInt(); // floor of the leading clone%0A            int clonePos = in.nextInt(); // position of the leading clone on its floor%0A            String direction = in.next(); // direction of the leading clone: LEFT or RIGHT%0A%0A            if(cloneFloor==-1)%7B%0A                System.out.println(%22WAIT%22);%0A            %7D%0A            else%7B%0A                if(cloneFloor!=exitFloor)%7B%0A                    if(elevs%5BcloneFloor%5D+1%3CclonePos && direction.equals(%22RIGHT%22))%7B%0A                        System.out.println(%22BLOCK%22);%0A                    %7D%0A                    else if(elevs%5BcloneFloor%5D-1%3CclonePos && direction.equals(%22LEFT%22))%7B%0A                        System.out.println(%22WAIT%22);%0A                    %7D%0A                    else if(elevs%5BcloneFloor%5D+1%3EclonePos && direction.equals(%22RIGHT%22))%7B%0A                        System.out.println(%22WAIT%22);%0A                    %7D%0A                    else%7B%0A                        System.out.println(%22BLOCK%22);%0A                    %7D%0A                %7D%0A                else%7B%0A                    if(exitPos+1%3CclonePos && direction.equals(%22RIGHT%22))%7B%0A                        System.out.println(%22BLOCK%22);%0A                    %7D%0A                    else if(exitPos-1%3CclonePos && direction.equals(%22LEFT%22))%7B%0A                        System.out.println(%22WAIT%22);%0A                    %7D%0A                    else if(exitPos+1%3EclonePos && direction.equals(%22RIGHT%22))%7B%0A                        System.out.println(%22WAIT%22);%0A                    %7D%0A                    else%7B%0A                        System.out.println(%22BLOCK%22);%0A                    %7D%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Create Player.java