• + 0 comments

    it may be showing Terminated due to timeout error because in test case 7 there is a huge number of input 10000000 100000 (like that)

    you should try prefix array sum it is so simple