Submission #390071


Source Code Expand

def check(table):
    mx = [1, 0, -1, 0]
    my = [0, 1, 0, -1]
    for i in range(4):
        for j in range(4):
            for k in range(4):
                x = j + mx[i]
                y = k + my[i]
                if 3 >= x >= 0 and 3 >= y >= 0 and table[j][k] == table[x][y]:
                    return True
    return False


table = []
for _ in range(4):
    alist = list(map(int, input().split()))
    table.append(alist)

print("CONTINUE" if check(table) else "GAMEOVER")

Submission Info

Submission Time
Task A - DEAD END
User yumechi
Language Python (3.2.3)
Score 100
Code Size 501 Byte
Status AC
Exec Time 143 ms
Memory 8932 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 32
Set Name Test Cases
All hand_1.txt, hand_2.txt, random_1.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_2.txt, random_20.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt, random_25.txt, random_26.txt, random_27.txt, random_28.txt, random_29.txt, random_3.txt, random_30.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt
Case Name Status Exec Time Memory
hand_1.txt AC 139 ms 8788 KB
hand_2.txt AC 135 ms 8812 KB
random_1.txt AC 134 ms 8804 KB
random_10.txt AC 134 ms 8804 KB
random_11.txt AC 135 ms 8808 KB
random_12.txt AC 135 ms 8932 KB
random_13.txt AC 139 ms 8820 KB
random_14.txt AC 135 ms 8800 KB
random_15.txt AC 136 ms 8804 KB
random_16.txt AC 136 ms 8800 KB
random_17.txt AC 135 ms 8800 KB
random_18.txt AC 136 ms 8804 KB
random_19.txt AC 134 ms 8804 KB
random_2.txt AC 136 ms 8776 KB
random_20.txt AC 137 ms 8836 KB
random_21.txt AC 140 ms 8808 KB
random_22.txt AC 137 ms 8804 KB
random_23.txt AC 141 ms 8808 KB
random_24.txt AC 133 ms 8816 KB
random_25.txt AC 135 ms 8816 KB
random_26.txt AC 134 ms 8804 KB
random_27.txt AC 135 ms 8844 KB
random_28.txt AC 142 ms 8816 KB
random_29.txt AC 134 ms 8908 KB
random_3.txt AC 133 ms 8808 KB
random_30.txt AC 135 ms 8932 KB
random_4.txt AC 134 ms 8904 KB
random_5.txt AC 132 ms 8800 KB
random_6.txt AC 136 ms 8856 KB
random_7.txt AC 136 ms 8808 KB
random_8.txt AC 138 ms 8844 KB
random_9.txt AC 135 ms 8780 KB
sample_1.txt AC 143 ms 8932 KB
sample_2.txt AC 139 ms 8920 KB
sample_3.txt AC 139 ms 8784 KB