Pls help me in debugging this code


convert to long long and take mod 10000003

why should I take Mod with 10000003?

where to multiply the time to paint each board?Is’nt it in the isPossible fn where we are checking if the time to paint the boards by a painter exceeds the mid value?

since the constraints are large
we take mod so that the value comes within range
u can try without mod also

hey the time ( t ) can be multiplied at the end
after computing answer variable
something like
image

with these code all except the last 2 TCs are getting passed.

I have tried it but still the last 2 TC s are not getting passed@chhavi Bansal

image
for this q
the input is
cin >> n >> k >> t

@Senjuti256 i request u to not reopen doubt u should wait for some time give the TA a bit time to debug

else rest is ur wish
its just that u can wait
i can simply provide u the code which gives correct answer but debuggin takes time

i have taken t as input and have sent my code through CB IDE.I have reopened the doubt because it is not yet solved.Still 2 TCs have not passed.

ha so like the doubt remains open till the time ur query is not solved

so u do not have to worry to reopen every time

https://ide.codingblocks.com/s/213180 without t

this one is with t.I have tried using t this way and also used the t only with the ans while performing modulus operation.This code as well that fails in last 2 test cases

u see this reply???

change the order of cin >> n >> k >> t;

this is with t