orik's blog

By orik, history, 2 months ago, In English,

n = input()

for i in range( int(n)):
x ,y=map(int,input().split())

if(x%2==0 and y%2==0):
    print('yes')   

elif(x%2!=0 and y%2!=0):
    print('yes')        
else:      
    print('no')

This is my python code , it gets the verdict runtime error when i submit it. What is the problem in my code

 
 
 
 
  • Vote: I like it
  • -8
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by orik (previous revision, new revision, compare).

»
2 months ago, # |
  Vote: I like it +28 Vote: I do not like it

Horrible blog.

What problem are you talking about? Are we supposed to read your mind?

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    n = input()

    for i in range( int(n)): x ,y=map(int,input().split())

    if(x%2==0 and y%2==0): print('yes')

    elif(x%2!=0 and y%2!=0): print('yes')
    else:
    print('no')

    This is my whole code and i sub,it it for the problem A — Sum of Odd Integers

    And it gives the verdict runtime error. Now i want to know why it gives runtime error