public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); scanner.nextLine(); assert 1 <= t && t <= 10 : "out of range, t: " + t; for (int it = 1; it <= t; it++) { Bravo o = Bravo.load(scanner); System.out.printf("Case #%d: %.7f\n", it, o.solve()); } }
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int nt = scanner.nextInt(); scanner.nextLine(); assert 1 <= nt && nt <= 100 : "out of range, nt: " + nt; for (int it = 1; it <= nt; it++) { Bravo o = Bravo.load(scanner); System.out.printf("Case #%d: %s\n", it, numors(o.solve(it), "IMPOSSIBLE")); } }