Submission #382925

#TimeUsernameProblemLanguageResultExecution timeMemory
382925AlexandraKarte (COCI15_karte)Cpython 3
50 / 50
19 ms3072 KiB
s = input() v = [] out = [13 for i in range (4)] dupli = [] for i in range (0, len(s), 3): a = [s[i], int(s[i+1]+s[i+2])] v.append(a) for i in range (len(v)): for j in range (len(v)): if i==j: continue elif v[i]==v[j]: if v[i] not in dupli: dupli.append(v[i]) if len(dupli)!=0: print ("GRESKA") else: for i in range (len(v)): if v[i][0] == "P": out[0] -= 1 elif v[i][0] == "K": out[1] -= 1 elif v[i][0] == "H": out[2] -= 1 elif v[i][0] == "T": out[3] -= 1 print (str(out[0]) + " " + str(out[1]) + " " + str(out[2]) + " " + str(out[3]))
#Verdict Execution timeMemoryGrader output
Fetching results...