@@ -0,0 +1,539 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=1728%0A%0A// Note: Class name should be %22ImageDithering%22 and NOT %22DitherCounter%22, in order to compile on TopCoder Arena%0A%0Apublic class ImageDithering %7B%0A%09public static int count(String dithered, String%5B%5D screen) %7B%0A%09%09int count = 0;%0A%09%09%0A%09%09for (String line : screen) %7B%0A%09%09%09for (int i = 0; i %3C line.length(); ++i) %7B%0A%09%09%09%09for (int j = 0; j %3C dithered.length(); ++j) %7B%0A%09%09%09%09%09if (dithered.charAt(j) == line.charAt(i)) %7B%0A%09%09%09%09%09%09count++;%0A%09%09%09%09%09%09break;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return count;%0A%09%7D%0A%7D%0A

Create ImageDithering.java