1 2 3 4 5 6 7 8 9 10 11 12 | def cords(x,y,xpos,ypos): xxpos = 1 xypos = 1 x = 0 while xxpos != xpos and xypos != ypos: if xxpos == 3: xxpos = 1 xypos += 1 xxpos += 1 x += 1 return x print cords(3,3,2,2) |
ZGVmIGNvcmRzKHgseSx4cG9zLHlwb3MpOgoJeHhwb3MgPSAxCgl4eXBvcyA9IDEKCXggPSAwCgl3aGlsZSB4eHBvcyAhPSB4cG9zIGFuZCB4eXBvcyAhPSB5cG9zOgoJCWlmIHh4cG9zID09IDM6CQoJCQl4eHBvcyA9IDEKCQkJeHlwb3MgKz0gMQoJCXh4cG9zICs9IDEKCQl4ICs9IDEKCXJldHVybiB4CnByaW50IGNvcmRzKDMsMywyLDIp
-
upload with new input
-
result: Success time: 0.03s memory: 6356 kB returned value: 0
1



