# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
161848 | boolodifjenula | Bridž (COCI17_bridz) | Cpython 3 | 77 ms | 3528 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
n=int(input())
z=0
for i in range(n):
S=input()
for i in range (len(S)):
if S[i]=="A":
z+=4
elif S[i]=="K":
z+=3
elif S[i]=="Q":
z+=2
elif S[i]=="J":
z+=1
print(z)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |