Submission #591619

#TimeUsernameProblemLanguageResultExecution timeMemory
591619BaartifispaCards (LMIO19_korteles)Cpython 3
16 / 100
1082 ms35592 KiB
ilosc = int(input()) tab = [] d = 0 wynik = 0 for i in range(ilosc): a = input() b = input() tab.append(a+b) #print(tab) for i in range(ilosc): for y in range(i+1,ilosc): if (tab[i][0] == tab[y][2] and tab[i][1] == tab[y+d][3]): wynik += 1 continue if (tab[i][1] == tab[y][0] and tab[i][3] == tab[y][2]): wynik += 1 continue if (tab[i][2] == tab[y][0] and tab[i][3] == tab[y][1]): wynik += 1 continue if (tab[i][0] == tab[y][1] and tab[i][2] == tab[y][3]): wynik += 1 print(wynik)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...