@@ -0,0 +1,308 @@
+def snail(array):%0A    res = %5B%5B%5D%5D%0A    while True:%0A        try:%0A            res.append(array.pop(0))%0A            res.append(%5Bx.pop(-1) for x in array%5D)%0A            res.append(array.pop(-1)%5B::-1%5D)%0A            res.append(%5Bx.pop(0) for x in array%5D%5B::-1%5D)%0A        except:%0A            break%0A    return sum(res, %5B%5D)%0A

Create 4kyu_snail.py