Thanks for the help. But, I figured out the problem and fixed my code and
resubmitted it and it passed all the test cases.
On Wed, Mar 3, 2021 at 3:26 AM porker2008 wrote:
> Hi,
>
> I can give you some input that your solution will fails to handle
>
> try
> *221*
>
> your code produce *219*,
Your code is too complicated and I have simplified it for you.
Should pass all the test cases.
Let me know if you have question
Code: https://ideone.com/IO2oWf
在2021年3月3日星期三 UTC-8 下午2:02:06 写道:
> Hello,
>
> I am repeatedly getting WA for Test Set - 1 on submitting my code. (Note:
> Sample
In don't know c# but u know c and c++ and I think the way you've declared
variables is wrong. For eg. It should be int arr[] and not int[] arr.
Anik Shuklabaidya
On Thu 4 Mar, 2021, 3:32 AM Dharmik Thakkar,
wrote:
> Hello,
>
> I am repeatedly getting WA for Test Set - 1 on submitting my code.
Your solution is almost correct for solving the Test set 1
The only mistake you have made is in function *solve1()*
Because you want to represent each worker with the binary representation of
the index, i.e. from *0* to *n-1*,
you should use
*l = len(bin(n - 1).lstrip('0b'))*
to determine the