Project Euler #152: Writing 1/2 as a sum of inverse squares

  • + 0 comments

    import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner sc=new Scanner(System.in); long n=sc.nextInt(); long sum=0; for(long ni=1;ni<=n;ni++) { for(long a=1;a<=ni;a++) { for(long b=0;b

                 }  
    
            }
        }
    }
    System.out.println(sum);
    

    } }