In the query function/method we are taking the input as the product of two adjacent nos. of the array. In the sample tc we are providing the required inputs. But for the hidden test cases where we aren’t providing any input how are the correct and inputs generated by the compiler as there is no function to generate the product of two adjacent numbers?
Regarding the lost no. qstn of codeforces
I am fixing my query as the product of two adjacent nos. In the array and for the sample test case providing the input accordingly. But for the compiler how will it understand what logic we are applying to our query like we mentioned no where that ans variable will contain product of the two indices we are entering as input. So how are the hidden tcs getting passed by compiler?
@Senjuti256 the code which we write is general code which should satisfy for all the test cases.we dont think for any particular test case.
But still I didn’t understand do you want to ask it for general information?
Yes for the hidden tcs we are not inputting anything for the interactive problems so how does our program get accepted?
@Senjuti256 if you have written the code then you must have written acoording to the input format of the question so according to that only your code will take input as for particular question the inout format will be same for all the questions.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.