Submission #630897

#TimeUsernameProblemLanguageResultExecution timeMemory
630897karolb2011Cards (LMIO19_korteles)Cpython 3
16 / 100
993 ms5640 KiB
n=int(input()) c=[] t=[0 for i in range(5)] for i in range(n): a=input() b=input() if a=="AA" and b=="AA": t[0]+=1 elif a=="AA" and b[0]=="A": t[1]+=1 elif a=="AA" and b[1]=="A": t[2]+=1 elif a[0]=="A" and b=="AA": t[3]+=1 else: t[4]+=1 s=sum(t) b=0 for i in range(5): for j in range(i+1,5): b+=t[i]*t[j] print(b)
#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...