Now,this is a very basic and very easy problem on SPOJ but again i failed to handle large inputs..........someone please help me to get this AC
https://www.spoj.pl/problems/JULKA/ My code which gave wrong answer is--- #include<stdio.h> int main() { long long int k,n,i,x1,x2; for(i=0;i<10;i++) { scanf("%lld",&x1); scanf("%lld",&x2); k=(x1+x2)/2; n=(x1-x2)/2; printf("%lld\n%lld\n",k,n); } return 0; } -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.