Constraints for this problem


#1

The constraints would be helpful.

What is the range for N and S? And how many test cases are there?