Need some help.... codeforces not(is working)?
Difference between en3 and en4, changed 8 character(s)
Hey so I was working on a problem recently and when I tested in custom invocation it worked.↵

When i submitted it didnt work?↵

Why would this happen?↵

Submission: [submission:86015133]↵
Problem: [problem:344A]↵


Output↵
On the single line of the output print the number of groups of magnets.↵

Code:↵
~~~~~↵
from sys import stdin,  stdout↵
def main():↵
    n = int(stdin.readline())↵
    l = 0↵
    y = " "↵
    for x in range(0,n):↵
        y = stdin.readline()↵
        x = stdin.readline()↵
        if(x != y):↵
            l = l + 1↵
    stdout.write(str(l+1))↵
main()↵
~~~~~↵

[Image 1](https://swamp.s3.amazonaws.com/Screen+Shot+2020-07-04+at+7.14.15+PM.png)↵
[Image 2](https://swamp.s3.amazonaws.com/Screen+Shot+2020-07-04+at+7.15.15+PM.png)↵

Please help, I have no idea what I'm doing wrong :(↵

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English YouCantTouchThis54 2020-07-05 17:52:55 8
en3 English YouCantTouchThis54 2020-07-05 03:21:38 166
en2 English YouCantTouchThis54 2020-07-05 03:20:40 1257
en1 English YouCantTouchThis54 2020-07-05 03:19:37 1927 Initial revision (published)