Not accepting testcase

@17manishms
hello Manish,
a)

here in this if statement u should update ur time_sep as well.
i,e time_sep=a[i];

b) use long long datatype and dont multiply ur array with time t.
because t is constant u can multiply in you answer later

c) image


only two cases passed

@Amam123
initialise ur s variable with maximum value in array.

btw is manish shah ur another name

manish shah is my name and i have another account with the name aman singh

4 testcases has been compiled but in 2 cases it is giving wrong ans

@Amam123
check ur corrected code here -> https://ide.codingblocks.com/s/212444