package PACKAGE_NAME;

/**
 * Created by kdonohue on 4/7/17.
 */
public class OversizedPancakeFlipper {
}

@@ -1,24 +1,28 @@
-package PACKAGE_NAME
+import java.util.Scanner
 ;%0A%0A/
@@ -62,16 +62,16 @@
 17.%0A */%0A
-
 public c
@@ -101,10 +101,1117 @@
 ipper %7B%0A
+    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int numCases = in.nextInt();%0A        for (int i = 1; i %3C= numCases; i++) %7B%0A            System.out.println(%22Case #%22 + i + %22: %22 + processCase(in));%0A        %7D%0A%0A    %7D%0A%0A    private static String processCase(Scanner in) %7B%0A        char%5B%5D chars = in.next().toCharArray();%0A        int k = in.nextInt();%0A        int countFlips = 0;%0A        for (int i = 0; i %3C= chars.length - k; i++) %7B%0A            if (chars%5Bi%5D == '-') %7B%0A                flip(chars, i, k);%0A                countFlips++;%0A            %7D%0A        %7D%0A        //System.out.println(%22after all flips%22);%0A        //System.out.println(chars);%0A        for (int i = chars.length - k; i %3C chars.length; i++) %7B%0A            if (chars%5Bi%5D == '-') %7B%0A                return %22IMPOSSIBLE%22;%0A            %7D%0A        %7D%0A        return countFlips + %22%22;%0A    %7D%0A%0A    private static void flip(char%5B%5D chars, int start, int k) %7B%0A        for (int i = 0; i %3C k; i++) %7B%0A            chars%5Bstart + i%5D = (chars%5Bstart + i%5D == '-') ? '+' : '-';%0A        %7D%0A        //System.out.println(chars);%0A    %7D%0A
 %7D%0A

Add OversidedPancakeFlipper