Sir , I am solving the problem https://www.spoj.com/problems/SOLDIERS/.I have tried many test cases and my code gives correct answers , but on submitting it gives WA.Can I post my code here ?
Yes, it is not uncommon to post code here . Just remember to use code tags or bbone tags.
sir , this is my code --
for i in range (int(raw_input())): try: a,b=map(int,raw_input().split(' ')) except:continue if a%2==1: a=(a+1)/2 else : b=(b+1)/2 a=a*b print a
sir , please tell me where my code is failing.