WA paying up

question link

my code :

http://www.codechef.com/viewsolution/5478526

please give a test case for which algorithm doesn’t work…

3 Likes

Try :

3 4

2

2

3

Answer should be YES :slight_smile:

1 Like

t = 1 and n=4 , m=35 and elements are 10 15 20 30. For this answer should be “Yes” but your solution gives “No” .

1 Like