Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task16 {
- public static void main(String[] args) {
- int n;
- int e;
- int res = 0;
- Scanner in = new Scanner(System.in);
- n = in.nextInt();
- e = in.nextInt();
- if(Math.pow(0.5, n) > e) res += Math.pow(0.5, n);
- if(Math.pow(0.333, n) > e) res += Math.pow(0.333, n);
- System.out.println(res);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement