Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sketch;
- public class n5{
- public static void main(String[] args) {
- /*
- double n = Math.sqrt(a*(a+11)) + Math.sqrt(b*(b+11));
- double m = Math.sqrt(a*b) + Math.sqrt((a+11)*(b+11));
- */
- for (int i = 0; i <= 10000000; i++){
- int a = 500;
- for (int j = 0; j<= 10000000; j++){
- int b = 500;
- double n = Math.sqrt(a*(a+11)) + Math.sqrt(b*(b+11));
- double m = Math.sqrt(a*b) + Math.sqrt((a+11)*(b+11));
- if (n>=m){
- System.out.println(a);
- System.out.println(b);
- }else{
- b++;
- }
- }
- a++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement