question link
http://www.codechef.com/problems/MARCHA1
my code :
http://www.codechef.com/viewsolution/5478526
please give a test case for which algorithm doesn’t work…
question link
http://www.codechef.com/problems/MARCHA1
my code :
http://www.codechef.com/viewsolution/5478526
please give a test case for which algorithm doesn’t work…
Try :
3 4
2
2
3
Answer should be YES
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” .