all stats

gnobody's stats

guessed the most

namecorrect guessesgames togetherratio

were guessed the most by

namecorrect guessesgames togetherratio

entries

round #3

guesses
comments 0

post a comment


gnobody.py ASCII text, with very long lines (357), with no line terminators
1
globals().__setitem__("entry",lambda A,B:[globals().__setitem__("r",[[0 for i in range(len(A))]for j in range(len(A))]),[[[globals().__getitem__("r").__getitem__(i).__setitem__(j,globals().__getitem__("r").__getitem__(i).__getitem__(j)+A[i][k]*B[k][j]) for k in range(len(A))] for i in range(len(A))] for j in range(len(A))],globals().__getitem__("r")][-1])

round #2

guesses
comments 0

post a comment


341618941317349376-nobody.py Unicode text, UTF-8 text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# apiomemetic beeoforms, utterly.
def entry(k):
    # æ input format
    k=list(map(int,k))
    k=[k[:10],k[10:20],k[20:30],k[30:40],k[40:50],k[50:60],k[60:70],k[70:80],k[80:90],k[90:100]]
    d=[[0]*10 for i in range(10)]
    d[0][0]=0
    v=[[0]*10 for i in range(10)]
    q=[(0,0)]
    ok=lambda y,x:x>=0 and x<10 and y>=0 and y<10 and not k[y][x]
    # stage 1: generate distance matrix
    while q:    
        y,x=q.pop()
        if v[y][x]:
            continue
        v[y][x]=1
        for i,j in [(-1,0),(0,-1),(0,1),(1,0)]:
            if ok(y+i,x+j) and not v[y+i][x+j]:
                d[y+i][x+j]=d[y][x]+1
                q.insert(0,(y+i,x+j))
    # stage 2: get the path
    r=[(9,9)]
    y,x=9,9
    while y!=0 or x!=0:
        D=d[y][x]
        for i,j in [(-1,0),(0,-1),(0,1),(1,0)]:
            if ok(y+i,x+j) and d[y+i][x+j]==D-1:
                r.append((y+i,x+j))
                y+=i
                x+=j
    r=list(reversed(r))
    # stage 3: convert it into the æ output format
    q=[]
    for i in range(1,len(r)):
        dy=r[i][0]-r[i-1][0]
        dx=r[i][1]-r[i-1][1]
        if (dy,dx)==(1,0):
            q.append(3)
        if (dy,dx)==(-1,0):
            q.append(1)
        if (dy,dx)==(0,-1):
            q.append(4)
        if (dy,dx)==(0,1):
            q.append(2)
    return q
# author: bad imitation of gollark

round #1

guesses
comments 0

post a comment


341618941317349376-nobody.py ASCII text
1
2
3
4
# Function to sort a list in ascending order.
def entry(list_to_be_sorted):
    # The standard library function sorted() takes a list and sorts it in ascending order.
    return sorted(list_to_be_sorted)