Ad
  • Custom User Avatar
    Test5
    ✔  Test Passed
    121,144,19,161,19,144,19,11,1008
    121,14641,20736,36100,25921,361,20736,361
    return false;
    
  • Custom User Avatar
    Time: 565ms Passed: 8
    Test Results:
    121,144,19,161,19,144,19,11
    121,14641,20736,361,25921,361,20736,361
      AreTheySameTests
      Test1
    ✔  Test Passed
    121,144,19,161,19,144,19,11
    121,14641,20736,36100,25921,361,20736,361
      Test2
    ✔  Test Passed
    1
      Test3
    ✔  Test Passed
      Test4
    ✔  Test Passed
      Test5
    ✔  Test Passed
    121,144,19,161,19,144,19,11,1008
    121,14641,20736,36100,25921,361,20736,361
      Test6
    ✔  Test Passed
    121,1440,191,161,19,144,195,11
    121,14641,2073600,36481,25921,361,20736,38025
      Test7
    ✔  Test Passed
    0,14,191,161,19,144,195,1
    1,0,196,36481,25921,361,20736,38025
      Test8
    ✔  Test Passed
    You have passed all tests! :)
    
  • Custom User Avatar

    In fact, it only needs to be judged:
    The square of all the elements in the array a appears in the array b

    No need to judge:
    All the elements in the array b have a square root in the array a

    Complete it in c# 6 month ago

  • Custom User Avatar

    The same issue in Test 5

    Test5
    ✘ Expected: True
    But was: False
    at AreTheySameTests.Test5 () <0x40826f20 + 0x0009f> in :0

    a [ 121 144 19 161 19 144 19 11 1008 ]
    b [ 121 14641 20736 36100 25921 361 20736 361 ]
    Not found 190

    190 * 190 = 36100 that is exists in b
    but there are no 190 in a

  • Custom User Avatar

    Post your failed test otherwise one can't understand your post. Did you print input and output to see what happens?

  • Custom User Avatar

    The test case for 5 is broken. 190 is not in a. Therefore false. The instructions even match that exact case

  • Custom User Avatar

    There are no errors in test 5. Did you think to corner cases?

  • Custom User Avatar

    I'm having the same issue here as well. I cannot get #5 to pass...

  • Custom User Avatar

    I don't see any error in test cases of C#. In the 1st test (test 5) True is expected but you gave False... In the 2nd test (test 6) you have 36100 in b but no square root of 36100 in a, so... you have to read again the description:-)