Go to diff to previous submission
import java.util.ArrayList; import java.util.List; import java.util.Scanner; /** * * @author student */ public class Mosquito { /** * @param args the command line arguments */ List<Integer> result = new ArrayList<Integer>(); int[] a = new int[7]; int pom = 0; while (!"".equals(res)) { for (int i = 0; i < ress.length; i++) { } try { if (a[6] > 0) { for (int i = 0; i < a[6]; i++) { pom = a[0]; if (a[5] > 0) { } else { a[0] = a[1]; } if (a[4] > 0) { } else { a[1] = a[2]; } a[2] = pom * a[3]; } } } result.add(a[0]); res = sc.nextLine(); } } } }