Is the Test Case Wrong?The test case as follow


  • 0
    Z

    first line is input array, the second line is candy count for each children from my solution,data is splitted by '\t'

    It seems correct to me, the sum is 209,but the answer is 208,and I got WA

    58 21 72 77 48 9 38 71 68 77 82 47 25 94 89 54 26 54 54 99 64 71 76 63 81 82 60 64 29 51 87 87 72 12 16 20 21 54 43 41 83 77 41 61 72 82 15 50 36 69 49 53 92 77 16 73 12 28 37 41 79 25 80 3 37 48 23 10 55 19 51 38 96 92 99 68 75 14 18 63 35 19 68 28 49 36 53 61 64 91 2 43 68 34 46 57 82 22 67 89
    2 1 2 3 2 1 2 3 1 2 3 2 1 4 3 2 1 2 1 3 1 2 3 1 2 3 1 2 1 2 3 3 2 1 2 3 4 5 2 1 3 2 1 2 3 4 1 2 1 2 1 2 3 2 1 2 1 2 3 4 5 1 2 1 2 3 2 1 2 1 2 1 2 1 2 1 2 1 2 3 2 1 2 1 2 1 2 3 4 5 1 2 3 1 2 3 4 1 2 3


  • 0
    W

    check out the answer you give in the 31st and 32nd place.
    when two ratings are equal, the latter one can be assigned with arbitrary number.


  • 0
    Z

    but the 32nd child musl be assigned with 3 at least, because the next decending ratings.


  • 0
    W

    sorry, my fault, didn't really focus this morning
    I just checked it again, look at the 19th, 20th, 21st answers which are 1, 3, 1


  • 0
    Z

    oh,yes,thanks for your help and I finally got the AC


  • 0
    W

    you're welcome. by the way, are u from China?


  • 0
    Z

    yes,and you? so it seems you have interest in China?


  • 0
    W

    haha, I'm also a Chinese, I just found your id sounds like pinyin. Nice meeting you.


  • 0
    Z

    Nice to meet you,:)


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.