### algmyr's blog

By algmyr, history, 4 years ago,

I got a system message about my solution (89664275)

w,h,sx,sy = map(int,input().split())

for x in range(sx, w+1):
for y in range(sy, h+1):
print(x,y)
for y in range(1, sy):
print(x,y)
sy = y
for x in range(1, sx):
for y in range(sy, h+1):
print(x,y)
for y in range(1, sy):
print(x,y)
sy = y

n,m,x,y=map(int,input().split())
for yy in range(y,m+1):
for xx in range(x,n+1):
print(xx,yy)
for xx in range(1,x):
print(xx,yy)
x=xx
for yy in range(1,y):
for xx in range(x,n+1):
print(xx,yy)
for xx in range(1,x):
print(xx,yy)
x=xx

Clearly it does, but it has all to do with the task being trivial and the approach taken being one of the least resistance ones (and this being python where you don't have a gazillion lines of template to obscure any potential similarities).

I guess to make it clear, I do not use any form of online IDE. All code I write is written locally on my machine, and has not left my machine other than through uploading my submission to the contest. So any similarities should be completely coincidental.