Ad
  • Default User Avatar

    I similarly was annoyed that we had to round the distance. I ran into a weird problem using int() vs round().

    from math import sqrt
    r2 = 5
    rA = int( sqrt(r2)*10000 )/10000 # 2.236
    rB = round( r2**0.5, 4 ) # 2.236

    This happened ONLY when r-squared equalled 5.

  • Default User Avatar

    When I did the translation, I didn't put anything special in the way the tests are done. So I think this is due to cw's way to handle Junit tests. I cannot do anything about that.

    Debugging with Java on cw may often be a pin in the ass... ;-/

  • Default User Avatar

    Well, it seems that the trouble lays on your side. ;)

    Not knowing your code, I cannot help you further so I'll let you investigate a bit your code (with the console! ;p ). Let me know if you encounter troubles.

  • Default User Avatar

    Could you paste your code here? (do not forget the spoiler flag)

    EDIT: btw, did you try to print the input in the console?