View Code of Problem 115

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int count = scanner.nextInt();
			int fu = count * 100000;
			int strange = (int)(Math.pow(2, count) -1);
			System.out.println(strange+" " +fu);
		}
		scanner.close();
	}
}


Double click to view unformatted code.


Back to problem 115