Why am I getting WA?
I tried 1000*1000 but still same results.
Although I don’t see any reason to increase the size since value of n<=100, therefor value of s, e (the indices of dp[ ][ ]) are in range(1, 100).
Also, if size would have been a problem then it would have probably shown Run error but output is wrong answer.