Ad
  • Custom User Avatar

    I'm found my issue. It was a problem with square root for big numbers.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    My solution works fine, but when I try submit it I get few errors.

    test12(ASumTest)
    expected:<-1> but was:<55100>
    
    testA(ASumTest)
    Find n of : 1720605659351588100
    Find n of : 1973141370766476036
    Find n of : 1880127813292190784
    Find n of : 1943086566072960000
    Find n of : 2216543389009136784
    Find n of : 1873243991718201600
    Find n of : 1972843574629409002
    expected:<-1> but was:<53001>
    

    I post my code below. It's Java.