Buy1-Get1 like in many code chef problems ,this problem asks to input number of test case as first line… so i wrote…
this runs on ideone but gives WA in code chef
so i wrote id 1762967
t=0; scanf("%d ",&t);
and now it got accepted…
BUT WHY THIS HAPPENED?