@@ -0,0 +1,1339 @@
+import java.util.*;%0A%0A// Wet Tiles can be found at:%0A// https://open.kattis.com/problems/wettiles%0A//%0A// This starter program will read in the input.%0A// The rest is up to you!%0Apublic class WetTiles %7B%0A%0A  static final int FLOOR = 0;%0A  static final int WALL = 1;%0A%0A  public static void main(String%5B%5D args) %7B%0A    Scanner in = new Scanner(System.in);%0A%0A    while (true) %7B%0A      int X = in.nextInt();%0A      if (X %3C 0) return;%0A%0A      int Y = in.nextInt();%0A      int T = in.nextInt();%0A      int L = in.nextInt();%0A      int W = in.nextInt();%0A%0A      int%5B%5D%5B%5D map = new int%5BY%5D%5BX%5D;%0A%0A      List%3CCell%3E leaks = new ArrayList%3C%3E();%0A%0A      for (int i = 0; i %3C L; i++) %7B%0A        int col = in.nextInt();%0A        int row = in.nextInt();%0A        leaks.add(new Cell(row, col));%0A      %7D%0A%0A      for (int i = 0; i %3C W; i++) %7B%0A        int startCol = in.nextInt();%0A        int startRow = in.nextInt();%0A        int endCol = in.nextInt();%0A        int endRow = in.nextInt();%0A        int dCol = endCol - startCol;%0A        int dRow = endRow - startRow;%0A        int row = startRow;%0A        int col = startCol;%0A%0A        while (row != endRow && col != endCol) %7B%0A          map%5Brow%5D%5Bcol%5D = WALL;%0A          row += dRow;%0A          col += dCol;%0A        %7D%0A      %7D%0A%0A    %7D%0A  %7D%0A%7D%0A%0Aclass Cell %7B%0A  int row;%0A  int col;%0A%0A  Cell(int row, int col) %7B%0A    this.row = row;%0A    this.col = col;%0A  %7D%0A%7D%0A

Add base for wet tiles.