Submission #591601

# Submission time Handle Problem Language Result Execution time Memory
591601 2022-07-07T16:36:26 Z Baartifispa Cards (LMIO19_korteles) Python 3
0 / 100
1000 ms 36280 KB
ilosc = int(input())
tab = []
d = 0
wynik = 0
for i in range(ilosc):    
    a = input()
    b = input()
    tab.append([])
    tab[-1].append(a[0])
    tab[-1].append(a[1])
    tab[-1].append(b[0])
    tab[-1].append(b[1])

print(tab)
for i in range(ilosc):
    for y in range(i+1,ilosc):
#        print(i, y)
        if (tab[i][0] == tab[y][2] and tab[i][1] == tab[y+d][3]) \
           or (tab[i][1] == tab[y][0] and tab[i][3] == tab[y][2])\
           or (tab[i][2] == tab[y][0] and tab[i][3] == tab[y][1])\
           or (tab[i][0] == tab[y][1] and tab[i][2] == tab[y][3]):
            wynik += 1
print(wynik)
# Verdict Execution time Memory Grader output
1 Incorrect 15 ms 2904 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 15 ms 2904 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1076 ms 36280 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 16 ms 2852 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 16 ms 2852 KB Output isn't correct
2 Halted 0 ms 0 KB -