My solution of 2nd question (Shil and the toy factory) is here CodeChef: Practical coding for everyone
can anybody tell me what is wrong in my code or provide some test cases for which it is wrong…
after finding max element of the array,update { max=max X n } and then apply the loop.The reason of doing is that the task can be done in atmost max*n days. For eg, there 4 machines which take 1,2,3,4 days to work and you have to produce 5 toys, so 5 toys can be produce in 20 days atmost.
#SPAM ALERT !!!
And some unknown language
1 Like
can u please provide some test cases for which my code is running wrong??