algmyr's blog

By algmyr, history, 14 months ago, In English

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

coinciding with antonkasko's solution (89673754)

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.

Pinging MikeMirzayanov, 300iq and Xiejiadong.

Read more »

 
 
 
 
  • Vote: I like it
  • +194
  • Vote: I do not like it