Doubt in my code

Hello, here is my code:

Is there any problem with my code or any improvements I can make before submitting it ?

My all the test cases are getting failed ?

Hey @yashsharma4304 declare all variables as long long int and then check, cause everything seems right. If it doesn’t pass all test cases, do let me know.

Ok let me check :slightly_smiling_face:

No it is still failing :frowning_face:

Send me your updated code

I have also changed the return type of min_time function to long long int and also update the statement at LINE 60 from :

cout<<min_time(n, k, t, size_of_boards)<<endl;

to :

cout<<min_time(n, k, t, size_of_boards) % 10000003<<endl;

but it is still failing.

This question might be under testing, try to submit it later on, cause when i am submitting my earlier accepted solution in this problem , it’s showing wrong answer.
You can see it here, Try to do this question later.

1 Like

Ok I will try it later.

Your submission is showing 100%, if you have no more doubts left in it? Can i mark It as resolved?

1 Like